home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Information / Digests / MacScripting Digest / The Digests / mac-script-94-08.txt < prev    next >
Encoding:
Internet Message Format  |  1994-10-16  |  975.3 KB  |  [TEXT/R*ch]

  1. Return-Path: LISTSERV@DARTCMS1.DARTMOUTH.EDU
  2. Received: from dartcms1.dartmouth.edu by lks.lks.csi.com (5.65/6.930123)
  3.      with SMTP id AA16365; Thu, 1 Sep 94 14:20:20 -0500
  4. Message-Id: <9409011920.AA16365@lks.lks.csi.com>
  5. Received: from DARTCMS1.DARTMOUTH.EDU by DARTCMS1.DARTMOUTH.EDU
  6.    (IBM VM SMTP V2R2) with BSMTP id 2048; Thu, 01 Sep 94 15:21:25 EDT
  7. Received: from DARTCMS1.DARTMOUTH.EDU (NJE origin LISTSERV@DARTCMS1) by
  8.  DARTCMS1.DARTMOUTH.EDU (LMail V1.2a/1.8a) with BSMTP id 2025; Thu,
  9.  1 Sep 1994 15:20:58 -0400
  10. Date:         Thu, 1 Sep 1994 15:20:25 -0400
  11. From: BITNET list server at DARTCMS1 (1.8a)
  12.               <LISTSERV@DARTCMS1.DARTMOUTH.EDU>
  13. Subject:      File: "MACSCRPT LOG9408"
  14. To: F Terry <pfterry@lks.csi.com>
  15.  
  16. =========================================================================
  17. Date:         Sun, 31 Jul 1994 22:59:30 -0700
  18. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  19. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  20. From:         MR Mac - Michael Robertson <robertso@SDSC.EDU>
  21. Subject:      Anyone know of any good "timing" examples?
  22.  
  23. Rather than reinvent the wheel, I'm wondering if anyone out there knows of
  24. any AppleScript code samples that deal with timed execution. By that I mean
  25. a script that will accept some sort of scheduling input and create an event
  26. which will execute at a certain date and time. An example would be to
  27. "ping" a server at a certain time. I would like an example that was
  28. dynamic. i.e. It received user input and then would execute at a later
  29. time. Any help greatly appreciated and go ahead and send the scripts to me
  30. via e-mail if you got any laying around! :)
  31.  
  32. Thanks in advance!
  33. =========================================================================
  34. Date:         Sun, 31 Jul 1994 19:05:44 -1000
  35. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  36. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  37. From:         Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
  38. Subject:      error number -128 is not quitting the script
  39.  
  40. Hi,
  41.   I'm still try to get scripts to exit in the appropriate places.  Do any
  42. of you know why error number -128 does not quit the script in the
  43. following example:
  44.  
  45. Process(theFile)
  46.  
  47. on Process(theFile)
  48.         try
  49.                 PerformAction(theFile)
  50.         on error
  51.                 activate
  52.                 display dialog "A fatal error occured!"
  53.                 error number -128 -- This is supposed to exit the script immedia
  54.         end try
  55. end Process
  56.  
  57.  
  58. Are there any work-arounds to make the script quit like it is supposed to?
  59.  
  60. Thanks in advance,
  61. peter
  62. =========================================================================
  63. Date:         Sun, 31 Jul 1994 21:32:46 -1000
  64. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  65. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  66. From:         Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
  67. Subject:      Re: File Exists?
  68. In-Reply-To:  <9408010704.AA17189@uhunix.uhcc.Hawaii.Edu>
  69.  
  70. On Sun, 31 Jul 1994, Mark Elpers wrote:
  71.  
  72. > Is there an AppleScript Addition that allows me to check is a file exists
  73. > at a specified path? I do not have the Scriptable Finder (yet...)
  74.  
  75. The file commands scripting addition that comes with AppleScript does
  76. such a thing:
  77.  
  78. if (list folder ((path to system folder as string) & "FolderOfInterest"))
  79.  contains TheFileImLookingFor then
  80.   display dialog "I'm so happy it's there!"
  81. end if
  82.  
  83. -pH
  84. =========================================================================
  85. Date:         Sun, 31 Jul 1994 21:27:16 -1000
  86. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  87. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  88. From:         Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
  89. Subject:      Re: Automatically saving scripts as run-only?
  90. In-Reply-To:  <9408010703.AA17120@uhunix.uhcc.Hawaii.Edu>
  91.  
  92. On Sun, 31 Jul 1994, David Ray wrote:
  93.  
  94. > >Do any of you have a drag-n-drop utility to automatically save other
  95. > >scripts as run-only?
  96. >
  97. > Nope, but I have another suggestion - if you invoke the scripts from Script
  98. > Menu or OSA Menu instead of Other Menu, you can run the scripts as compiled
  99. > scripts rather than stand-alone applications. The scripts will use the heap
  100. > space of whatever the front application is.
  101.  
  102. Actually the latest version of OtherMenu (1.4.1) will run compiled
  103. AppleScripts.  However, I need my scripts to be applications for 2 reasons:
  104.   1.  Some of them have to have drag-n-drop capability
  105.   2.  Some of the scripts need to be able to figure out their own name.
  106.        Now if their was a way to get the name of a (non-application)
  107. script while it was running, I could let OtherMenu run some of them.  Do
  108. scripts have a name property?
  109.  
  110. -peter
  111. =========================================================================
  112. Date:         Mon, 1 Aug 1994 01:03:25 -0700
  113. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  114. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  115. From:         Chuck McKinnon <mckinnon@KAIWAN.COM>
  116. Subject:      AS & Microphone II 4.0.2
  117.  
  118. When I run this (from Script Editor)
  119.  
  120. tell application "MicroPhoneT II"
  121.         activate
  122.         Do Script "Do Script * 'Setup'" ['Setup' is a MP II internal script.]
  123. end tell
  124.  
  125. I get an error saying script not found. I've also tryed the module approach --
  126. i.e. - Do Script "Do Script * 'Setup','<settings name>"
  127. same result.
  128.  
  129. So the ? is what is wrong? Is it the syntax? or the command?
  130. Any help is mucho appreciated.
  131.  
  132. TIA
  133.  
  134.  
  135. Chuck
  136.  
  137. /*----------------------------------------------------------------------------*\
  138. \     Chuck McKinnon       |       ANAHEIM, CA       |      CSU Fullerton      /
  139. /                          |                         |                         \
  140. \   mckinnon@kiawan.com    |     -- BE  HAPPY --     |          a|k|a          /
  141. /   CI$      74260,1110    |                         |                         \
  142. \                          |    The Mouse doesn't    |        Cal State        /
  143. /   Give me the finger     |   like it when you're   |    Construction Zone    \
  144. \   for PGP Public Key     |        not happy        |    ^^^^^^^^^^^^^^^^^    /
  145. /                          |                         |                         \
  146. \*----------------------------------------------------------------------------*/
  147. =========================================================================
  148. Date:         Mon, 1 Aug 1994 15:14:22 +0100
  149. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  150. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  151. From:         Judith =?iso-8859-1?Q?Kert=E9sz?= SUCHARD <suchard@CNAM.FR>
  152. Subject:      Re: MacWorld, Boston
  153.  
  154. >Yes.  Call Random House at 1-800-733-3000 and order the Complete AppleScrip=
  155. t
  156.  
  157. Is there an address to write to? thanks.
  158.  
  159. Chaleureusement,
  160.  
  161. Judith
  162. _________________________________________
  163. Judith Kert=E9sz Suchard                  suchard@cnam.cnam.fr
  164. C.N.A.M. Labo Informatique             AppleLink: cnam
  165. 25, rue Mont Cenis                         Tel:(1) 40 27 25 57
  166. 75018 Paris, France                     Fax: 40 27 27 72
  167. _________________________________________
  168. "La simplicit=E9, c'est le fruit d'un long effort"
  169. =========================================================================
  170. Date:         Mon, 1 Aug 1994 11:03:55 -0500
  171. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  172. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  173. From:         Mitch Temoche <temoche@USUHSB.USUHS.MIL>
  174. Subject:      Re> Fwd> AS & Microphone II 4.0.2
  175.  
  176. ---- begin included message ----
  177. When I run this (from Script Editor)
  178.  
  179. tell application "MicroPhoneT II"
  180.         activate
  181.         Do Script "Do Script * 'Setup'" ['Setup' is a MP II internal script.]
  182. end tell
  183.  
  184. I get an error saying script not found. I've also tryed the module approach
  185. --
  186. i.e. - Do Script "Do Script * 'Setup','<settings name>"
  187. same result.
  188.  
  189. So the ? is what is wrong? Is it the syntax? or the command?
  190. Any help is mucho appreciated.
  191.  
  192. TIA
  193.  
  194.  
  195. Chuck
  196.  
  197. ---- end included message --------
  198.  
  199. tell application "MicroPhoneT II"
  200.         activate
  201.    -- change this line     "Do Script "Do Script * 'Setup'"
  202.    -- try this
  203.         Do Script MicroPhone Script "Setup"
  204. end tell
  205. =========================================================================
  206. Date:         Mon, 1 Aug 1994 11:16:38 EDT
  207. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  208. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  209. From:         Danny Goodman <DGoodman@AOL.COM>
  210. Subject:      Re: MacWorld, Boston
  211.  
  212. >Is there an address to write to? (Random House)
  213.  
  214. Random House Inc.
  215. 201 East 50th Street
  216. New York, NY 10022
  217.  
  218. Other phone numbers you can try for international orders are:
  219.  
  220. voice: 212-572-6106
  221. fax:  212-572-6045
  222.  
  223. Danny
  224. =========================================================================
  225. Date:         Mon, 1 Aug 1994 08:27:32 -0800
  226. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  227. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  228. From:         "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
  229. Subject:      Re: File Exists?
  230.  
  231. At 21:32 7/31/94 -1000, Pete Hinely wrote:
  232. >On Sun, 31 Jul 1994, Mark Elpers wrote:
  233. >
  234. >> Is there an AppleScript Addition that allows me to check is a file exists
  235. >> at a specified path? I do not have the Scriptable Finder (yet...)
  236. >
  237. >The file commands scripting addition that comes with AppleScript does
  238. >such a thing:
  239. >
  240. >if (list folder ((path to system folder as string) & "FolderOfInterest"))
  241. > contains TheFileImLookingFor then
  242. >  display dialog "I'm so happy it's there!"
  243. >end if
  244.  
  245. The only problem with this solution is that it assumes that the folder
  246. containing the path exists.
  247.  
  248. Example: I'm trying to get some files out of a folder.  I'm not sure this
  249. folder exists, but I'm not sure the folder containing it exists either.  If
  250. you don't have Disk:Folder1:Folder2
  251. list folder("Disk:Folder1:Folder2") will generate an error.
  252.  
  253. So I had to write my own routine:
  254. on FileExists(path)
  255.         set AppleScript's text item delimiters to {":"}
  256.         set Container to ""
  257.         if (list disks) does not contain word 1 of path then
  258.                 set AppleScript's text item delimiters to {""}
  259.                 return 0
  260.         end if
  261.         repeat with x from 2 to number of words in path
  262.                 log x
  263.                 set Container to (Container & word (x - 1) of path & ":")
  264.                 log Container
  265.                 if ((list folder (Container as text)) does not contain word
  266. x of path) then
  267.                         set AppleScript's text item delimiters to {""}
  268.                         return 0
  269.                 end if
  270.         end repeat
  271.         set AppleScript's text item delimiters to {""}
  272.         return 1
  273. end FileExists
  274.  
  275. Seems to work for me ...
  276. =========================================================================
  277. Date:         Mon, 1 Aug 1994 10:19:26 -0800
  278. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  279. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  280. From:         "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
  281. Subject:      Problem with Text Field Delimiters
  282.  
  283. Earlier today, I posted a subroutine that would find if a file existed.
  284. This is a fragment of that subroutine:
  285. ---
  286. on FileExists(path)
  287.         set AppleScript's text item delimiters to {":"}
  288.         set Container to ""
  289.         log (item 1 of path)
  290.         if (list disks) does not contain word 1 of path then
  291.                 set AppleScript's text item delimiters to {""}
  292.                 return false
  293.         end if
  294. ---
  295.  
  296. I've found an interesting problem: If the disk name is not one word (Apple
  297. allows spaces, of course), this fails because it tries to see if (list
  298. disks) contains (word 1 of path).
  299.  
  300. I originally assumed that word 1, word 2, etc would be calculated based on
  301. the new text item delimiters -- the ':', in which case word 1 would be
  302. everything up to the first ':', but apparently AS is not doing that.  Am I
  303. doing anything wrong?
  304.  
  305. -roy
  306. =========================================================================
  307. Date:         Mon, 1 Aug 1994 19:31:15 +0000
  308. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  309. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  310. From:         Wagner Luiz Truppel <wlt@MERCURIO.UC.PT>
  311. Subject:      How does AS know which osax to use?
  312.  
  313. Howdy,
  314.  
  315. how does AS know which osax to choose from when asked to perform a command?
  316. For example, Apple's System Object Suite, The Sweet Suite (by Gerry Davis)
  317. and the Script Tools Suite (by Mark Alldritt) all define a 'choose folder'
  318. command ***with the same syntax***. If one has all of these in the
  319. Scripting Additions folder, how does AS decide which to use?
  320.  
  321. Thanks.
  322.  
  323.  
  324. Wagner Luiz Truppel
  325. WLT@MERCURIO.UC.PT
  326. =========================================================================
  327. Date:         Mon, 1 Aug 1994 10:49:04 -0700
  328. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  329. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  330. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  331. Subject:      Re: How does AS know which osax to use?
  332.  
  333. >Howdy,
  334. >
  335. >how does AS know which osax to choose from when asked to perform a command?
  336. >For example, Apple's System Object Suite, The Sweet Suite (by Gerry Davis)
  337. >and the Script Tools Suite (by Mark Alldritt) all define a 'choose folder'
  338. >command ***with the same syntax***. If one has all of these in the
  339. >Scripting Additions folder, how does AS decide which to use?
  340.  
  341. Jon Pugh no doubt knows, but...most likely, either the first or last osax
  342. encountered which uses a given syntax for a particular event class/event id
  343. pair will be chosen.  So long as they do the same thing, it really doesn't
  344. matter.
  345.  
  346. This issue has led me to do three things:
  347.  
  348. 1.  Keep the Scripting Additions folder as empty as possible.  (For
  349. example, I have the GTQ library...I have only about two of the pieces
  350. installed at the moment.)
  351.  
  352. 2.  Not add to the supply.
  353.  
  354. 3.  Use Finder labels to mark the non-Apple Additions I do have, so I can
  355. find them quickly and rip them out.
  356.  
  357.    --John
  358.  
  359. --
  360. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  361. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  362. =========================================================================
  363. Date:         Mon, 1 Aug 1994 14:12:06 -0400
  364. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  365. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  366. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  367. Subject:      Re: Problem with Text Field Delimiters
  368. In-Reply-To:  <no.id> from "Roy S. Rapoport" at Aug 1, 94 10:19:26 am
  369.  
  370. --Roy S. Rapoport wrote:
  371. >
  372. >I've found an interesting problem: If the disk name is not one word (Apple
  373. >allows spaces, of course), this fails because it tries to see if (list
  374. >disks) contains (word 1 of path).
  375.  
  376.     It's important to remember that a word in AppleScript is always
  377. bounded by white space, regardless of what the Text Item Delimiters are
  378. set to.
  379.  
  380. >I originally assumed that word 1, word 2, etc would be calculated based on
  381. >the new text item delimiters -- the ':', in which case word 1 would be
  382. >everything up to the first ':', but apparently AS is not doing that.  Am I
  383. >doing anything wrong?
  384.  
  385.     Try changing the "word 1" in your script to "text item 1". This
  386. should fix your pathname parsing problems.
  387.  
  388. -Hades
  389. =========================================================================
  390. Date:         Mon, 1 Aug 1994 11:12:36 -0800
  391. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  392. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  393. From:         Matt Stevens <matt@TRIBE.TRIBE.COM>
  394. Subject:      Re: Problem with Text Field Delimiters
  395.  
  396. >I've found an interesting problem: If the disk name is not one word (Apple
  397. >allows spaces, of course), this fails because it tries to see if (list
  398. >disks) contains (word 1 of path).
  399. >
  400. >I originally assumed that word 1, word 2, etc would be calculated based on
  401. >the new text item delimiters -- the ':', in which case word 1 would be
  402. >everything up to the first ':', but apparently AS is not doing that.  Am I
  403. >doing anything wrong?
  404. >
  405. >-roy
  406.  
  407. I recently ran into this same problem; by specifying that you want word 1
  408. of text item a, instead of word 1 of a it seems to work.  The key is
  409. specifying explicitly that it's a text item, otherwise it seems AS doesn't
  410. always treat it as such in regards to delimiters.
  411. --
  412. matt
  413. =========================================================================
  414. Date:         Mon, 1 Aug 1994 13:11:42 -0500
  415. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  416. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  417. From:         Fred Terry <pfterry@LKS.CSI.COM>
  418. Subject:      DocServer for Frontier Runtime
  419.  
  420. John Baxter has dropped a copy of the DocServer for Frontier Runtime on gaea
  421. (thanks, John). You'll find it in
  422.  
  423. ftp://gaea.kgs.ukans.edu/frontier/FromUserland/DocServer_for_Runtime.sit.hqx
  424.  
  425. His description follows:
  426.  
  427. DocServer is on-line documentation browser for Frontier verbs. This package
  428. provides documentation for all verbs supported by Frontier Runtime 3.0.
  429. It's especially useful if you want to understand how the scripts in the
  430. Sample Scripts package work..
  431.  
  432. How To Install
  433. -------------
  434.  
  435. With Frontier Runtime running, double-click on DocServer.Runtime. Click OK
  436. in any confirmation dialogs that appear. The verbs and shared menu for
  437. DocServer will be installed into the Runtime database. Launch DocServer to
  438. browse thru the verb documentation. Use the Jump To Verb command to view a
  439. specific verb, or use the Index menu to browse a verb category.
  440.  
  441. UserLand Software
  442. December 1993
  443. =========================================================================
  444. Date:         Mon, 1 Aug 1994 20:20:48 +0000
  445. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  446. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  447. From:         Wagner Luiz Truppel <wlt@MERCURIO.UC.PT>
  448. Subject:      Request for osaxen
  449.  
  450. Howdy,
  451.  
  452. I'm writing an aplet that requires two special dialog boxes and, not having
  453. the expertise required to create the necessary osaxen, I decided to turn to
  454. the great programmers out there in the net for some help.
  455.  
  456. Here's what I need:
  457.  
  458. - a choose folder dialog box that has an additional button, for creating a
  459. new folder. In other words, the user can select an already existing folder
  460. or create a brand new right from within the dialog, without having to
  461. dismiss it, go to the Finder, create the new folder, and then get back to
  462. the aplet. Notice that invisible folders should not be listed.
  463.  
  464. - a choose multiple files dialog box (ie, with "Add", "Add All", "Remove"
  465. and "Remove All" buttons) that allows the user to select folders as well as
  466. files - a "choose multiple items" dialog would be a more appropriate
  467. name... The analogous "choose one item" dbox is also an interesting
  468. addition, and I could use that one instead (on a loop), but I'd rather use
  469. the "multiple items" one. Finally, either "choose item" dbox should have
  470. (according to an option set by the scripter) a check box for selecting
  471. aliases instead of their targets. Another option set by the scripter that
  472. would be nice to have is one to prevent invisible files and/or folders from
  473. being listed.
  474.  
  475. I must say that I cannot pay any significant amount of money for the
  476. results of these requests, and just hope someone with the required
  477. expertise and some free time will be willing to do it for the challenge,
  478. for the benefit of other scripters (in the best tradition of shareware and
  479. freeware) and for a free copy of my aplet when it's finished.
  480.  
  481. Thank you very much.
  482.  
  483.  
  484. Wagner Luiz Truppel
  485. WLT@MERCURIO.UC.PT
  486. =========================================================================
  487. Date:         Mon, 1 Aug 1994 14:30:30 -0400
  488. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  489. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  490. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  491. Subject:      Re: Problem with Text Field Delimiters
  492. In-Reply-To:  <no.id> from "Matt Stevens" at Aug 1, 94 11:12:36 am
  493.  
  494. --Matt Stevens wrote:
  495. >
  496. >I recently ran into this same problem; by specifying that you want word 1
  497. >of text item a, instead of word 1 of a it seems to work.  The key is
  498. >specifying explicitly that it's a text item, otherwise it seems AS doesn't
  499. >always treat it as such in regards to delimiters.
  500.  
  501.     This can be a bit cumbersome. Since he wants an entire portion of a
  502. pathname that been separated by ":" characters he really needs to use
  503. "text item 1" or "last text item" to get the portions. Words in
  504. AppleScript are always bounded by whitespace.
  505.  
  506. -Hades
  507. =========================================================================
  508. Date:         Mon, 1 Aug 1994 12:13:49 -0800
  509. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  510. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  511. From:         "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
  512. Subject:      Re: I learned something new today
  513.  
  514. At  1:17 7/28/94 -0800, Jon Pugh wrote:
  515.  
  516. >In the Script Editor 1.1 there is the nifty event log window.  Hopefully
  517. >everyone has played with this.  The tip is that AppleScript knows 3
  518. >commands for dealing with this.  All of them only do things when the window
  519. >is showing, so they can be left in finished scripts.  The first is "start
  520. >log", the second is "stop log" and the last is simply "log".  (All kids
  521. >love Log!)
  522.  
  523. Hmm.  This is not my experience.
  524.  
  525. Note the following script:
  526. ---
  527. start log
  528. copy 2 + 5 to t
  529. set t to t + 3
  530. log t
  531. display dialog t
  532. stop log
  533. ---
  534. This works great if I run it from within the script editor, but if I save
  535. it as an application and double-click on it, I get '<<script>> doesn't
  536. understand the start log message'.
  537. =========================================================================
  538. Date:         Mon, 1 Aug 1994 13:07:39 -0700
  539. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  540. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  541. From:         Derrick Schneider <derrick@NETCOM.COM>
  542. Subject:      Remote machine AppleScripting
  543.  
  544. One thing that I do whenever I need to deal with getting at information on a
  545.  remote machine, and it's not in an app which supports remote Apple events, is
  546.  the following:
  547.  
  548. Script applications, when running, do accept AppleScript commands across the
  549.  network. So, let's say you wanted to know the name of every item on the top
  550.  level of someone's hard drive (who was running the Scriptable Finder,
  551.  conveniently enough)
  552. Put a script application on their machine, and make a handler like this:
  553. on getAllNames()
  554.         get the name of every item on startup disk of application "Finder"
  555. end getAllNames
  556.  
  557. Then from another machine across the network, write the following script:
  558. tell app "Tester" of machine "Foo"
  559.      getAllNames()
  560. end tell
  561.  
  562. (Assume Tester is the name of the script application churning away on the other
  563.  machine).
  564.  
  565. When you send it the getAllNames() command, it will cause the Tester script
  566.  application to get the name of every item. This command will be treated like a
  567.  local command because the script itself is on the local machine. The result
  568.  that it gets
  569. will be returned across the network to your script.
  570.  
  571. This is a somewhat brain-dead example, but it shows that you can use script
  572.  applications to receive remote events and execute commands on the local
  573.  machine. This is a handy way (as handy as anything that uses Program Linking,
  574.  anyway)
  575. to get at apps that don't allow remote events.
  576.  
  577. BTW, in the second edition of the Tao book (this is not a shameless plug), we
  578.  have a script which will allow you to run any script on some other machine
  579.  using this technique. For some reason, my roommates won't let me test it on our
  580.  house's network!
  581.  
  582. The trick is to use the "run script" command on the target machine. run script
  583.  will take any text and run it as if it were a script. So, you type out some
  584.  text in Scriptable Text Editor, and send that to the remote machine, which has
  585.  a script app with the
  586. following command:
  587.  
  588. on runScript (textToUse)
  589.         run script textToUse
  590. end runScript
  591.  
  592. Before they firmly shut down Program Linking, I had dialogs appearing on my
  593.  roommate's screens (which I was able to get the results of, BTW), and all sorts
  594.  of other neat things!
  595.  
  596. Hope this helps,
  597. Derrick
  598. =========================================================================
  599. Date:         Mon, 1 Aug 1994 13:19:42 -0700
  600. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  601. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  602. From:         Derrick Schneider <derrick@NETCOM.COM>
  603. Subject:      Re: Anyone know of any good "timing" examples?
  604. In-Reply-To:  <199408010621.XAA20536@mail.netcom.com>
  605.  
  606. On Sun, 31 Jul 1994, MR Mac - Michael Robertson wrote:
  607.  
  608. > Rather than reinvent the wheel, I'm wondering if anyone out there knows of
  609. > any AppleScript code samples that deal with timed execution. By that I mean
  610. > a script that will accept some sort of scheduling input and create an event
  611. > which will execute at a certain date and time. An example would be to
  612. > "ping" a server at a certain time. I would like an example that was
  613. > dynamic. i.e. It received user input and then would execute at a later
  614. > time. Any help greatly appreciated and go ahead and send the scripts to me
  615. > via e-mail if you got any laying around! :)
  616. >
  617. > Thanks in advance!
  618.  
  619. >
  620.  
  621. I don't know if this will help, but I have a script which executes every
  622. hour and says the time (using Plaintalk scripting additions). Here's how
  623. I set it up (I'm not looking at my Mac at the moment, so I can't
  624. guarantee that this will work):
  625.  
  626. on idle
  627.    if the time string of (current date) contains ":00:" then tell me to
  628. speakTime()
  629. end idle
  630.  
  631. You could, obviously, put any time to watch for in there. Handling the
  632. user interface might be tricky, but it depends on how elaborate you wish
  633. to make it.
  634.  
  635. You might have the following script:
  636. display dialog "Ping server at what time?" default answer "8:00 AM"
  637. copy the text returned of the result to pingTime
  638.  
  639. on idle
  640.    global pingTime
  641.    if the time string of (current date) contains (word 1 of pingTime) and
  642. the time string of (current date) contains word 2 of pingTime then tell
  643. me to pingServer()
  644.    -- the time string (if that's what it's called) comes back as 8:00:00 AM
  645.    -- I can't remember if AS strings can be broken down into words. I
  646. think they can, but I could be wrong. That's what I get for not working
  647. on Macs anymore.
  648.  
  649. end idle
  650.  
  651. Anyway, it's just an idea. Hope it helps,
  652.  
  653. Derrick
  654. =========================================================================
  655. Date:         Mon, 1 Aug 1994 13:20:19 -0700
  656. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  657. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  658. From:         Mike Shaff <shaff@QUILTY.STANFORD.EDU>
  659. Subject:      HyperCard Droplets?
  660. In-Reply-To:  Peter Fleck - SMM's message of Sun,
  661.               31 Jul 1994 19:05:32 CDT <9408010009.AA05521@quilty.Stanford.EDU>
  662.  
  663. Greetings,
  664.  
  665. Peter Fleck was kind enough to type in an example of a HyperCard stack as a
  666. droplet.
  667.  
  668. I took the example of mutated it for my purposes and ran into one area of
  669. problem.
  670.  
  671. My stack script is being interpreted as AppleScript (that's not the problem).
  672. The script complains about the following line:
  673.  
  674.         request appleEvent data
  675.  
  676. The comment says this invocation should return the file pathname.  Which given
  677. the context makes perfect sense, however there must be some syntactic
  678. difference to make it work.
  679.  
  680. Thanks for reading,
  681.  
  682. Michael
  683. =========================================================================
  684. Date:         Mon, 1 Aug 1994 13:21:18 -0700
  685. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  686. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  687. From:         Derrick Schneider <derrick@NETCOM.COM>
  688. Subject:      Re: error number -128 is not quitting the script
  689. In-Reply-To:  <199408010700.AAA23392@mail.netcom.com>
  690.  
  691. Regarding trying to quit the script when Cancel is pressed...
  692.  
  693. Doesn't AppleScript deal with this for you? If you don't trap the error,
  694. I thought Cancel automatically terminated the script. Maybe the same
  695. doesn't apply in handlers...?
  696.  
  697. Derrick
  698. =========================================================================
  699. Date:         Mon, 1 Aug 1994 17:26:48 -0500
  700. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  701. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  702. From:         Mitch Temoche <temoche@USUHSB.USUHS.MIL>
  703. Subject:      Set working directory
  704.  
  705. Does anyone know how to set an application's working directory in AppleScript
  706. either via a script or an addition?
  707. =========================================================================
  708. Date:         Mon, 1 Aug 1994 15:02:14 -0700
  709. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  710. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  711. From:         Mike Shaff <shaff@QUILTY.STANFORD.EDU>
  712. Subject:      Global variables
  713.  
  714. Greetings,
  715.  
  716. I have a new definition for what fun is not:  HyperCard & AppleScripting.
  717.  
  718. With that caveat aside, should global variables declared in a stack script
  719. (interpreted as an AppleScript) be visible to a background script (also
  720. interpreted as an AppleScript)?
  721.  
  722. Take care!
  723.  
  724. Michael
  725. =========================================================================
  726. Date:         Mon, 1 Aug 1994 15:26:36 -0700
  727. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  728. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  729. From:         Mike Shaff <shaff@QUILTY.STANFORD.EDU>
  730. Subject:      Renaming files
  731.  
  732. Greetings,
  733.  
  734. I am more than slightly embarrassed to ask this question, but deadlines know no
  735. modesty:
  736.  
  737. How does one script the renaming of a file?
  738.  
  739. I liked at all of my scraps of information, Finder Lib, Toolkit, etc. and
  740. nothing.
  741.  
  742. The answer must be straight forward, I'm just to bent to see.
  743.  
  744. Thanks,
  745.  
  746. Michael
  747. =========================================================================
  748. Date:         Mon, 1 Aug 1994 16:03:46 -0800
  749. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  750. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  751. From:         "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
  752. Subject:      Re: Renaming files
  753.  
  754. At 15:26 8/1/94 -0700, Mike Shaff wrote:
  755. >How does one script the renaming of a file?
  756.  
  757. Wow, a question I know the answer to! :)
  758.  
  759. Use Finder Liaison 1.1 (unless you have Scriptable Finder.  I don't have
  760. SF, but it seems like it can pretty much do anything you want it to do,
  761. other than prepare coffee (you need the coffee OSA for that)) ... code
  762. fragment:
  763. ---
  764. tell application "Finder Liaison 1.1"
  765.         Set Name of Folder BSIFolder in Disk GPS2 To BackUPName
  766.         quit
  767. end tell
  768. --
  769.  
  770. You get the point ...
  771.  
  772. -roy
  773. =========================================================================
  774. Date:         Mon, 1 Aug 1994 19:14:28 -0400
  775. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  776. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  777. From:         Boris Levitin <boris@WORLD.STD.COM>
  778. Subject:      Re: Anyone know of any good "timing" examples?
  779.  
  780. MR Mac - Michael Robertson <robertso@SDSC.EDU> writes:
  781.  
  782. ::::
  783. Rather than reinvent the wheel, I'm wondering if anyone out there knows of
  784. any AppleScript code samples that deal with timed execution. By that I mean
  785. a script that will accept some sort of scheduling input and create an event
  786. which will execute at a certain date and time. An example would be to
  787. "ping" a server at a certain time. I would like an example that was
  788. dynamic. i.e. It received user input and then would execute at a later
  789. time. Any help greatly appreciated and go ahead and send the scripts to me
  790. via e-mail if you got any laying around! :)
  791. ::::
  792.  
  793. There is an example of a simple timed-execution script in Danny Goodman's
  794. Complete AppleScript Handbook. The downside is that the applet has to stay
  795. running. There is a dearth of meaningfully scriptable scheduling software...
  796. I'm trying to talk to Nisus, which purchased Essentil Software's Easy Alarms,
  797. about extending its AS support to allow applets to set Easy Alarms reminders
  798. that play other applets. Perhaps owners of Now Alarms would care to comment...
  799.  
  800. Boris Levitin                                  WGBH Public Broadcasting, Boston
  801.                                    boris@world.std.com * boris_levitin@wgbh.org
  802.               I produced this message and am solely responsible for its content
  803. =========================================================================
  804. Date:         Mon, 1 Aug 1994 19:18:52 -0400
  805. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  806. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  807. From:         Boris Levitin <boris@WORLD.STD.COM>
  808. Subject:      Re: error number -128 is not quitting the script
  809.  
  810. Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU> writes:
  811.  
  812. >Are there any work-arounds to make the script quit like it is supposed to?
  813.  
  814. quit or quit me don't work for you?
  815.  
  816. Boris Levitin                                  WGBH Public Broadcasting, Boston
  817.                                    boris@world.std.com * boris_levitin@wgbh.org
  818.               I produced this message and am solely responsible for its content
  819. =========================================================================
  820. Date:         Mon, 1 Aug 1994 16:20:55 -0700
  821. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  822. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  823. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  824. Subject:      Re: Frontier records & lists
  825.  
  826. >I have question regarding accessing a list of records in Frontier.
  827. >When scripting Quark, you can do something like
  828. >
  829. >   get(page[1].picturebox[color == "foo"].name)
  830. >
  831. >and you will be returned a list of the names of all the picture boxes one
  832. >page 1 that have the color "foo".
  833.  
  834. That is achieved through a collaboration (on one of two levels) between
  835. (speaking carelessly) the Apple Event Manager and the Application.
  836. [Really, it's a part of the AE Manager which appears as a separate
  837. library.].  I suspect XPress uses the faster level (in which the
  838. application somehow marks elements for further consideration) rather than
  839. the slower level (in which the Manager has to ask for individual
  840. comparisons for each and every element to be tested).
  841.  
  842. I might add that even the simpler level can be quite complex in practice:
  843. you need to write a function which AE Manager can call to count the number
  844. of any (valid) element in any container, and another function which AE
  845. Manager can call to do any valid comparison between two objects or between
  846. an object and some raw data which might have been made into an object but
  847. wasn't).
  848.  
  849.  
  850. >Is there any way to do something like this with a very large list of records
  851. >in Frontier? I have created a type of index for 2500 illustrations (stock
  852. >number, folder name, and file name), and want to be able to get all the file
  853. >names that pertain to a certain item number. The client for whose jobs I
  854. >created these scripts is organizationally challenged and has several
  855. >duplicate stock numbers for completely different products.
  856. >
  857. >I want to be able to find all the records that contain the same value in one
  858. >particular field  without looping through the entire list and checking the
  859. >value of that field. For example I would like to be able to do something like
  860. >
  861. >
  862. >  foo = a very large list of records
  863. >  bar = foo['fld1' == "something"]
  864. >
  865. >and have bar be a list of either the records themselves or even the index
  866. >values of the list elements that match.
  867.  
  868. Frontier doesn't do this...for a one-shot job, I would guess that the
  869. better approach would be to write a looping script, verify it on small
  870. sample data (but you knew that), then turn it loose over the weekend on
  871. your fastest available machine.  [You'd have to do the same in
  872. AppleScript.]
  873.  
  874. It would be possible to design and write a helper application which
  875. collaborates in the fast way with the AE Manager to do the job for you.
  876. That could be done in a rather general way (and might be useful, but almost
  877. certainly wouldn't repay development costs).  Or...a Frontier UCMD could be
  878. written to do the specific job at hand (or some of the more general job).
  879.  
  880. But...either of those would need, as part of testing, a comparison of the
  881. results against the weekend run I mentioned earlier (overnight might well
  882. be enough).
  883.  
  884. >
  885. >+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
  886. >|       Everything is very very deeply      \
  887. >|    I  N  T  E  R  T  W  I  N  G  L  E  D   \
  888. >| dave@sage.uucp/sage!dave@noc.tor.hookup.net \
  889. >+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
  890.  
  891. Isn't it, though.
  892.  
  893.    --John
  894.  
  895. --
  896. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  897. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  898. =========================================================================
  899. Date:         Mon, 1 Aug 1994 16:21:04 -0700
  900. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  901. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  902. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  903. Subject:      Re: Re(2): Frontier records & lists
  904.  
  905. >Doug Baron wrote:
  906. >
  907. >>This should work fine, memory permitting. Generally, the list you get back
  908. >>will contains object specifiers for the indicated items, but if you ask for
  909. >>the items' ids, you should get back a list of ids. For example:
  910. >>
  911. >>    foobar = foo ['fld1' == "something"].id
  912. >>
  913. >>This assumes that "foo"s _have_ ids in the first place.
  914. >
  915. >Am I missing something? It seems to me that this kind of thing does not work
  916. >with lists of records in Frontier, but does work with objects in Quark. Allow
  917. >me to illustrate:
  918. >
  919. >local
  920. >  foo, bar
  921. >foo = {{'fld1':"rec 1 fld 1 data",'fld2':"rec 1 fld 2 data"},{'fld1':"rec 2
  922. >fld 1 data",'fld2':"rec 2 fld 2 data"}}
  923. >
  924. >foo is a list that contains 2 elements. Each element is a record that
  925. >contains 2 fields, named 'fld1' and 'fld2'.
  926. >
  927. >The following command
  928. >
  929. >  bar = foo['fld1' == "rec 2 fld 1 data"]
  930. >
  931. >yields the error "Array index is out of range. The list "foo" doesn't have an
  932. >item #0"
  933. >
  934. >Shouldn't the above assignment work?
  935.  
  936. Conceptually, it should.  In the implementation, 'fld1' == "rec 2 fld 1
  937. data" is evaluated as it appears there:  'fld1' is coerced to a string, and
  938. compared with the other string...they aren't (obviously) equal, so the
  939. result is false.  Then you have
  940.    bar = foo[false]
  941.  
  942. which looks like indexing, so the false is coerced to an integer (0), and
  943. foo[0] by definition does not exist.
  944.  
  945. If you happened to express a test which came out true, you would assign the
  946. first element of foo to bar, silently.  That seems worse.
  947. >
  948. >Or what about the following potentially quite useful assignments...
  949. >
  950. >  bar = foo[100-last]['fld1' == "rec 2 fld 1 data"]
  951. >  bar = foo['fld1' contains "rec 2"]
  952. >  bar = foo['fld1' startswith "rec"]
  953. >
  954. >or something similar.
  955.  
  956. All of those suffer the same fate...they are evaluated from the inside out.
  957. (bar = foo ['fld1' startswith 'fld'] would assign foo[1] to bar, again not
  958. what you would want).
  959.  
  960.  
  961. >Basically, I am wondering if what I want to do in Frontier is currently
  962. >impossible (and if not how do I?), and to recommend that it be implemented in
  963. >the future if it is.
  964.  
  965. An interesting suggestion, but I'd advise scripting around the need for the
  966. time being.
  967.  
  968.    --John
  969.  
  970. --John W. Baxter    Port Ludlow, WA USA   jwbaxter@pt.olympus.net
  971.   UserLand Software support
  972. =========================================================================
  973. Date:         Mon, 1 Aug 1994 19:25:31 -0400
  974. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  975. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  976. From:         Boris Levitin <boris@WORLD.STD.COM>
  977. Subject:      Re: File Exists?
  978.  
  979. >> Is there an AppleScript Addition that allows me to check is a file exists
  980. >> at a specified path? I do not have the Scriptable Finder (yet...)
  981.  
  982. try
  983.    info for (theFilePath as alias)
  984.    --code for file-found condition
  985. on error
  986.    --code for file-not-found condition
  987. end try
  988. --control passes to here
  989.  
  990. Boris Levitin                                  WGBH Public Broadcasting, Boston
  991.                                    boris@world.std.com * boris_levitin@wgbh.org
  992.               I produced this message and am solely responsible for its content
  993. =========================================================================
  994. Date:         Mon, 1 Aug 1994 18:25:22 -0600
  995. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  996. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  997. From:         "Andy Cemelli [remote]" <ANDYC@WORDPERFECT.COM>
  998. Subject:      Hypercard droplets? -Reply
  999.  
  1000. In ResEdit change bundle bit 128.  Under the "APPL" and "STAK" types
  1001. create one more, file type: "****" then rebuild your desktop, this'll
  1002. allow any file dropped on HC to launch and then the script that Peter
  1003. Fleck sent should work...
  1004.  
  1005. >>> Mike Shaff <shaff@QUILTY.STANFORD.EDU> - 7/31/94 5:57 PM >>>
  1006. Is there a method for making Hypercard stacks saved as applications
  1007. into droplets?
  1008. =========================================================================
  1009. Date:         Mon, 1 Aug 1994 15:05:21 -1000
  1010. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1011. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1012. From:         Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
  1013. Subject:      Re: error number -128 is not quitting the script
  1014. In-Reply-To:  <9408012320.AA29312@uhunix.uhcc.Hawaii.Edu>
  1015.  
  1016. On Mon, 1 Aug 1994, Boris Levitin wrote:
  1017.  
  1018. > Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU> writes:
  1019. >
  1020. > >Are there any work-arounds to make the script quit like it is supposed to?
  1021. >
  1022. > quit or quit me don't work for you?
  1023.  
  1024. Unfortunately "quit" and "quit me" will not quit a script.
  1025.  
  1026. Any other ideas?
  1027.  
  1028. -peter
  1029. =========================================================================
  1030. Date:         Mon, 1 Aug 1994 15:19:13 -1000
  1031. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1032. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1033. From:         Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
  1034. Subject:      Re: Renaming files
  1035. In-Reply-To:  <9408012319.AA29140@uhunix.uhcc.Hawaii.Edu>
  1036.  
  1037. The Jon's Commands scripting addition can easily rename files also:
  1038.  
  1039. I believe the syntax is as follows:
  1040.  
  1041.   renameFile oldfilename to newfilename
  1042.  
  1043. It's as simple as that!
  1044. =========================================================================
  1045. Date:         Tue, 2 Aug 1994 09:34:57 +0800
  1046. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1047. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1048. From:         Todd Hooper <todd@PERTH.DIALIX.OZ.AU>
  1049. Subject:      Re: Filemaker Pro - printing
  1050.  
  1051. Brian, thanks for the suggestion.
  1052.  
  1053. I did play with using do script "myprint" to trigger a FileMaker
  1054. printing script from AppleScript. There seems to be a lot of
  1055. timeout problems with these, which is why I hoped for a
  1056. 100% AppleScript solution. I guess FileMaker just isn't there
  1057. yet.
  1058.  
  1059. Thanks,
  1060.  
  1061. Todd
  1062. =========================================================================
  1063. Date:         Mon, 1 Aug 1994 21:46:03 CDT
  1064. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1065. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1066. From:         Peter Fleck - SMM <fleck@ASTRO.SPA.UMN.EDU>
  1067. Subject:      Re: error number -128 is not quitting the script
  1068.  
  1069. >> Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU> writes:
  1070. >>
  1071. >> >Are there any work-arounds to make the script quit like >> it is supposed
  1072. to?
  1073. >>
  1074. >> quit or quit me don't work for you?
  1075.  
  1076. > Unfortunately "quit" and "quit me" will not quit a script.
  1077.  
  1078. > Any other ideas?
  1079.  
  1080. Try "tell me to quit"
  1081.  
  1082. Peter
  1083. =========================================================================
  1084. Date:         Tue, 2 Aug 1994 00:10:09 -0400
  1085. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1086. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1087. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  1088. Subject:      Re: Filemaker Pro - printing
  1089. In-Reply-To:  <no.id> from "Todd Hooper" at Aug 2, 94 09:34:57 am
  1090.  
  1091. --Todd Hooper wrote:
  1092. >
  1093. >Brian, thanks for the suggestion.
  1094.  
  1095.     You're welcome.
  1096.  
  1097. >I did play with using do script "myprint" to trigger a FileMaker
  1098. >printing script from AppleScript. There seems to be a lot of
  1099. >timeout problems with these, which is why I hoped for a
  1100. >100% AppleScript solution. I guess FileMaker just isn't there
  1101. >yet.
  1102.  
  1103.     Have you tried wrapping the Do Script command in a with timeout
  1104. statement? This is how you stop all of those timeout problems. Try this
  1105. out:
  1106.  
  1107. tell application "FileMaker Pro"
  1108.     with timeout of 600 seconds
  1109.         Do Script "myprint"
  1110.     end timeout
  1111. end tell
  1112.  
  1113. -Hades
  1114. =========================================================================
  1115. Date:         Mon, 1 Aug 1994 18:58:31 -1000
  1116. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1117. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1118. From:         Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
  1119. Subject:      Re: error number -128 is not quitting the script
  1120. In-Reply-To:  <9408020246.AA06533@uhunix.uhcc.Hawaii.Edu>
  1121.  
  1122. On Mon, 1 Aug 1994, Peter Fleck - SMM wrote:
  1123.  
  1124. > Try "tell me to quit"
  1125.  
  1126. Nope, it won't quit a script application, as you can see by trying the
  1127. following short script:
  1128.  
  1129. display dialog "Hello"
  1130. tell me to quit        -- NOPE, DOESN'T WORK!
  1131.  
  1132. tell me
  1133.         quit           -- NOPE, DOESN'T WORK EITHER!
  1134. end tell
  1135.  
  1136. tell current application to quit    --THREE STRIKES!  DOESN'T WORK EITHER!
  1137. display dialog "I wasn't supposed to make it this far!"
  1138.  
  1139.  
  1140. How can something that should be so easy to do, be so difficult!  I just
  1141. want to exit a script.
  1142.  
  1143. peter
  1144. =========================================================================
  1145. Date:         Tue, 2 Aug 1994 10:03:58 +0000
  1146. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1147. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1148. From:         Neil Christie <MacScript@CHRISTIE.DEMON.CO.UK>
  1149. Subject:      Finding by date created/modified, System 7.5 shutdown items
  1150.  
  1151. After reading about the new features in System 7.5 in particular the
  1152. shutdown items folder along the lines of the startup items folder.
  1153.  
  1154. I began to think what sort of things I could do and decided that an
  1155. AppleScript to find all the new files or files modified that day and back
  1156. them up would be extremely useful. I would then move copies of these files
  1157. to a new folder on the desktop and then use DropStuff=81 or StuffIt Lite=81 =
  1158. to
  1159. then stuff this and delete the original. I would either file this archive
  1160. away or prompt for a floppy if it's not present to archive it onto.
  1161.  
  1162. I am able to create the folder, copy things into it and then delete the
  1163. folder through Finder Liaison 1.1 and by simulating keystrokes in the
  1164. finder through keyquencer although other scripting additions may provide a
  1165. direct way of creating and deleting folders? For example I can create and
  1166. name a folder on the desktop by using
  1167. hide front application
  1168. AutoType "n" holding "command"
  1169. AutoType "dts tms "
  1170. this requires that you launch the script from the finder and that you have
  1171. type it 4 me and the application menu osax. This creates a new folder with
  1172. a name of the date and time in a short format.
  1173.  
  1174. The problem I have with this script is that I can't however find all the
  1175. documents that need to be backed up so any suggestions, examples would be
  1176. greatly appreciated.
  1177.  
  1178. I could use the file commands scripting addition and step through each file
  1179. checking its creation and modification dates but that would take too long.
  1180. I have also tried the find document scripting addition which looks more
  1181. suitable but I can't coerce it into finding all files modified today. Has
  1182. anyone already done this, pointers or examples would be appreciated.
  1183.  
  1184. Neil Christie       |Voice/Fax: 031 229 6507
  1185. 14 West Castle Road |E-Mail:    Neil@christie.demon.co.uk
  1186. Edinburgh           |-------------------------------------
  1187. EH10 5AU            |Apple Macintosh Centris 660AV 8/230 CD.
  1188. Scotland            |System 7.1, running PPP on a 14.4K modem
  1189. =========================================================================
  1190. Date:         Tue, 2 Aug 1994 10:04:08 +0000
  1191. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1192. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1193. From:         Neil Christie <MacScript@CHRISTIE.DEMON.CO.UK>
  1194. Subject:      =?iso-8859-1?Q?=22StuffIt_Lite=81_=2F_DropStuff=81_examples_=2B_wh
  1195. at_?=
  1196.               =?iso-8859-1?Q?osax_provided_a_command?=
  1197.  
  1198. Has anyone got any example scripts for "StuffIt Lite=81 / DropStuff=81. I kn=
  1199. ow
  1200. that DropStuff=81 is not completely scriptable but I was trying to get
  1201. keyquencer to type the name for the archive which works in other programs
  1202. but not here.
  1203. This is do with a script to go in the shutdown items folder of system 7.5
  1204. that finds all new, modified files and then archives them using "StuffIt
  1205. Lite=81
  1206.  
  1207. Is there anyway I can find which scripting addition provides a command. I
  1208. have 121 scripting additions all together and have big problems when trying
  1209. to ask questions or tell someone how to do something. I would ideally like
  1210. to type in the command and have the name of the scripting addition
  1211. returned. If this cannot be done can it be done from within the script
  1212. editor?
  1213.  
  1214. Thanks, Neil.
  1215.  
  1216. Neil Christie       |Voice/Fax: 031 229 6507
  1217. 14 West Castle Road |E-Mail:    Neil@christie.demon.co.uk
  1218. Edinburgh           |-------------------------------------
  1219. EH10 5AU            |Apple Macintosh Centris 660AV 8/230 CD.
  1220. Scotland            |System 7.1, running PPP on a 14.4K modem
  1221. =========================================================================
  1222. Date:         Tue, 2 Aug 1994 07:55:20 -0600
  1223. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1224. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1225. From:         "Andy Cemelli [remote]" <ANDYC@WORDPERFECT.COM>
  1226. Subject:      Re: Anyone know of any good "timing" examples? -Reply
  1227.  
  1228. In the early betas of AS, there was a folder you could put in your
  1229. system folder called something like "Timer Items" or something like
  1230. that and each of the items you wanted run at a specific time would be
  1231. renamed to that time... so the file would be "[harddisk]:System
  1232. Folder:Timer Items:5:00 PM" and it would run at 5pm.  Did this get
  1233. dropped from the final?
  1234. =========================================================================
  1235. Date:         Tue, 2 Aug 1994 05:53:22 PDT
  1236. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1237. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1238. From:         Joe Scripter <MikeL@EWORLD.COM>
  1239. Subject:      AppleScript, HyperCard & MPW
  1240.  
  1241. Any Ideas?
  1242.  
  1243. I am looking for a scripting solution to what I thought would be an easy
  1244. routine....
  1245.  
  1246. I would like to be able to execute a script in MPW by way of an AppleScript
  1247. event in Hypercard.  I have been able to open MPW and write the the string in
  1248. MPW from a script in Hypercard, but I can't figure out a way to execute,
  1249. which in MPW is the "enter" key.  Do you know of any resources?
  1250.  
  1251. Thanks -
  1252.  
  1253. Mike Lennon
  1254.  
  1255. K&M Graphics
  1256. =========================================================================
  1257. Date:         Tue, 2 Aug 1994 09:59:33 EDT
  1258. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1259. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1260. From:         Danny Goodman <DGoodman@AOL.COM>
  1261. Subject:      Re: error number -128 is not quitting the script
  1262.  
  1263. When I run the following script:
  1264.  
  1265. try
  1266.  frobnitz
  1267. on error
  1268.  display dialog "Sorry"
  1269.  error number -128
  1270. end try
  1271. beep
  1272.  
  1273. I do not get a beep after clicking "OK" in the dialog--which is what I would
  1274. expect with the "error number -128" line.  Are you sure your statement
  1275. includes the word "number?"  One other suggestion: create the dialog with a
  1276. single "Cancel" button.
  1277.  
  1278. Danny
  1279. =========================================================================
  1280. Date:         Tue, 2 Aug 1994 09:19:10 -0500
  1281. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1282. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1283. From:         Fred Terry <pfterry@LKS.CSI.COM>
  1284. Subject:      FileBusy osax
  1285.  
  1286. Glenn Austin (thanks, Glenn!) has placed an osax on gaea for distribution.
  1287. You'll find it in
  1288.  
  1289. ftp://gaea.kgs.ukans.edu/applescript/osaxen/FileBusy.hqx
  1290.  
  1291. Here's a brief description.
  1292.  
  1293. FileBusy file descriptor
  1294.  
  1295. returns true if the file is currently open (busy), false if the file is not
  1296. currently open (not busy).
  1297.  
  1298.  
  1299. Enjoy.
  1300.  
  1301. pf
  1302. =========================================================================
  1303. Date:         Tue, 2 Aug 1994 08:33:12 -0700
  1304. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1305. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1306. From:         MR Mac - Michael Robertson <robertso@SDSC.EDU>
  1307. Subject:      Grabbing part of a text string.
  1308.  
  1309. There must be an easier way then I've devised to get part of a text string.
  1310. e.g. I have a string similar to, "Different text in here (everytime)" and I
  1311. want to get the contents enclosed in the parenthesis into another string.
  1312. Any easy way to do this?
  1313. =========================================================================
  1314. Date:         Tue, 2 Aug 1994 09:10:20 -0700
  1315. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1316. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1317. From:         Steve Michel <michel@NETCOM.COM>
  1318. Subject:      Re: Finding by date created/modified, System 7.5 shutdown items
  1319.  
  1320. >After reading about the new features in System 7.5 in particular the
  1321. >shutdown items folder along the lines of the startup items folder.
  1322. >
  1323.  
  1324. ...
  1325.  
  1326. >The problem I have with this script is that I can't however find all the
  1327. >documents that need to be backed up so any suggestions, examples would be
  1328. >greatly appreciated.
  1329. >
  1330. >I could use the file commands scripting addition and step through each file
  1331. >checking its creation and modification dates but that would take too long.
  1332. >I have also tried the find document scripting addition which looks more
  1333. >suitable but I can't coerce it into finding all files modified today. Has
  1334. >anyone already done this, pointers or examples would be appreciated.
  1335.  
  1336. Since you're talking about using 7.5 and thus the Scriptable Finder, it's
  1337. easy to have the Finder get your list for you. Here's a chunk of code that
  1338. finds all files modified since midnight today:
  1339.  
  1340. -- first, get a date for midnight
  1341. copy date ((current date)'s date string & " 12:00 am") to midnight
  1342. -- now have the Finder find all the files modified since then
  1343. tell application "Finder"
  1344.         copy (every file of entire contents of desktop whose modification
  1345. date > midnight) to theFiles
  1346. end tell
  1347.  
  1348. After running this, the variable theFiles contains the list of files. It's
  1349. none too fast (depending on how many files you have on your hard disk), but
  1350. the Finder can still do it much faster than AS can looping through every
  1351. file.
  1352.  
  1353.  
  1354. ================================================================
  1355. "In order to come up with something that rings true, you would
  1356. have to stay out of the way of that information machine that
  1357. everyone is plugged into. If you're plugged into the same
  1358. information machine, then there's no point to write, 'cause then
  1359. everyone knows the same thing."
  1360.                                  -- Bob Dylan
  1361. ================================================================
  1362. =========================================================================
  1363. Date:         Tue, 2 Aug 1994 09:09:29 -0800
  1364. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1365. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1366. From:         Mark Alldritt <alldritt@WIMSEY.COM>
  1367. Subject:      Re: Request for osaxen
  1368.  
  1369. > ...
  1370. >
  1371. > - a choose multiple files dialog box (ie, with "Add", "Add All", "Remove"
  1372. > and "Remove All" buttons) that allows the user to select folders as well as
  1373. > files - a "choose multiple items" dialog would be a more appropriate
  1374. > name... The analogous "choose one item" dbox is also an interesting
  1375. > addition, and I could use that one instead (on a loop), but I'd rather use
  1376. > the "multiple items" one. Finally, either "choose item" dbox should have
  1377. > (according to an option set by the scripter) a check box for selecting
  1378. > aliases instead of their targets. Another option set by the scripter that
  1379. > would be nice to have is one to prevent invisible files and/or folders from
  1380. > being listed.
  1381. >
  1382. > ...
  1383.  
  1384. While they don't provide all your ask for here, the Choose Several Files and
  1385. Choose Several Folders commands in Script Tools may help.
  1386.  
  1387. -Mark
  1388. =========================================================================
  1389. Date:         Tue, 2 Aug 1994 09:09:24 -0800
  1390. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1391. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1392. From:         Mark Alldritt <alldritt@WIMSEY.COM>
  1393. Subject:      Re: Anyone know of any good "timing" examples?
  1394.  
  1395. Hi,
  1396.  
  1397. I've developed a package called Scheduler which allows you to schedule the
  1398. execution of scripts (saved as applications).  You can have your scripts
  1399. run at specific times, or in response to an array of other events.
  1400.  
  1401. A demo copy of Scheduler is available in the AppleScript archive
  1402. (gaea.kgs.ukans.edu).
  1403.  
  1404. Cheers
  1405. -Mark
  1406. =========================================================================
  1407. Date:         Tue, 2 Aug 1994 10:14:59 -0700
  1408. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1409. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1410. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  1411. Subject:      Re: Finding by date created/modified, System 7.5 shutdown items
  1412.  
  1413. >After reading about the new features in System 7.5 in particular the
  1414. >shutdown items folder along the lines of the startup items folder.
  1415. >
  1416. >I began to think what sort of things I could do and decided that an
  1417. >AppleScript to find all the new files or files modified that day and back
  1418. >them up would be extremely useful. I would then move copies of these files
  1419. >to a new folder on the desktop and then use DropStuff=81 or StuffIt Lite=81=
  1420.  to
  1421. >then stuff this and delete the original. I would either file this archive
  1422. >away or prompt for a floppy if it's not present to archive it onto.
  1423. >
  1424. >I am able to create the folder, copy things into it and then delete the
  1425. >folder through Finder Liaison 1.1 and by simulating keystrokes in the
  1426. >finder through keyquencer although other scripting additions may provide a
  1427. >direct way of creating and deleting folders?
  1428.  
  1429. Given that you (will) have System 7.5, you will have the "Scriptable
  1430. =46inder".  With Scriptable Finder, you can write things like:
  1431.  
  1432. tell application "Finder"
  1433.     if exists folder "Testing" of startup disk then
  1434.         delete folder "Testing" of startup disk
  1435.     end if
  1436.     set myNewFolder to make new folder at startup disk with properties
  1437. {name:"Testing"}
  1438.     reveal myNewFolder -- this opens the window for the startup disk,
  1439. highlighting the new folder
  1440. end tell
  1441. myNewFolder
  1442.  
  1443.  
  1444. =46inder Liaison is history, IMHO.  So are most needs to use KeyQuencer, et
  1445. al, with Finder.  (If you try to create a folder which uses a name already
  1446. taken, Finder creates an "untitled Folder", and puts up an alert telling
  1447. you the name is taken, please use another, and the script stalls.  So some
  1448. way of assuring that the folder's intended name is available is a good
  1449. idea.  That test I included isn't a good way...just A way.
  1450.    --John
  1451.  
  1452. --
  1453. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  1454. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  1455. =========================================================================
  1456. Date:         Tue, 2 Aug 1994 10:04:55 PDT
  1457. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1458. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1459. From:         Jonathan Levy <Jonathan_Levy@COLOS.PIXAR.COM>
  1460. Subject:      None
  1461.  
  1462.                        Subject:                               Time:9:18 AM
  1463.   OFFICE MEMO          None                                   Date:8/2/94
  1464. >>Bill Nye <nye@CADENCE.COM> asks:
  1465. >>
  1466. >>Is buying QuicKeys 3.0.1 (list $169) enough to get me the Apple-scriptable
  1467. >>QuicKeys product that is regularly discussed in this mailing list?
  1468. >
  1469. >I don't understand why anyone familiar with AppleScript would be interested
  1470. >in spending $$$ for Quickkeys when they have the same functionality for
  1471. >less money and without any new inits from the AutoType/AutoClick OSAXEN.
  1472. >
  1473. >-Dave
  1474. >(a satisfied AutoType customer)
  1475.  
  1476. There are quite a few applications that require a better bridge to scripting
  1477. than some of the osaxen provide. I deal alot with routines in Photoshop in
  1478. which I could only create macros in Quickeys (or Photomatic, which is a
  1479. macro player specifically written for Photoshop but is not really
  1480. scriptable). I use applescript as the glue to bind all of these Quickey
  1481. macros, and it acceptably works.
  1482.  
  1483. To answer the question, Quickeys 3.x has a system extension, "Quickeys
  1484. Toolbox" that is able to communicate with applescript. For Quickeys 2.x,
  1485. there was created a system extension called "CEAIC" which provides the same
  1486. functionality to QK 2.x under a different name. I honestly do not know the
  1487. differences between the two extensions.
  1488. The advantages to having the updated version of Quickeys is the extended
  1489. functionality. You can even call Applescript scripts from within QK. QK
  1490. macros can also be written and called in a Quickeys Script. There are quite
  1491. a few more additions to QK 3.x, but I couldn't elaborate. I can say,
  1492. however, that if you have the earlier version, you should upgrade.
  1493. In a perfect world, every application would be applevent aware and OSA
  1494. compliant, but ours isn't.
  1495.  
  1496.  
  1497. jonathan_levy@colossal.com
  1498. jonathan_levy@pixar.colos.com
  1499. JonathanHL@aol.com
  1500. =========================================================================
  1501. Date:         Tue, 2 Aug 1994 13:42:42 -0400
  1502. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1503. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1504. From:         Lee Hoong <lhoong@EMORYU1.CC.EMORY.EDU>
  1505. Subject:      Re: Grabbing part of a text string.
  1506.  
  1507. >There must be an easier way then I've devised to get part of a text string.
  1508. >e.g. I have a string similar to, "Different text in here (everytime)" and I
  1509. >want to get the contents enclosed in the parenthesis into another string.
  1510. >Any easy way to do this?
  1511.  
  1512. I don't know how you're currently extracting the sub-string, but this works
  1513. for me:
  1514.  
  1515. set thestring to "Different text in here (everytime)"
  1516.  
  1517. set openparen to (offset in thestring of "(")
  1518. set closeparen to (offset in thestring of ")")
  1519.  
  1520. set extracted to (text from character (openparen + 1) to character
  1521. (closeparen - 1) of thestring)
  1522.  
  1523. extracted
  1524.  
  1525. Lee.
  1526.  
  1527. Lee K. Hoong
  1528. Emory University
  1529. Atlanta, GA 30322
  1530. Internet: lhoong@unix.cc.emory.edu
  1531. AOL: LHOONG
  1532. ==========================
  1533. Opinions and comments expressed are mine; I do not represent Emory
  1534. University.
  1535. =========================================================================
  1536. Date:         Tue, 2 Aug 1994 11:26:38 -0700
  1537. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1538. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1539. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  1540. Subject:      Get foo as {bar, baz}
  1541.  
  1542.    The Apple Event Registry defines the optional parameter to the Get Data
  1543. event as being a list of types, in order of preference.  The target
  1544. application is supposed to return the desired data in the type requested by
  1545. the left-most item in the list which it CAN use to represent the data.  [It
  1546. is not an error if the first type[s] in the list are impossible, only if
  1547. all of them are.]
  1548.  
  1549.    I have written a small application (would you believe a scriptable,
  1550. recordable "TrafficLight"--the old (mid 1980s) MPW "Sample" program) which
  1551. implements the get data event this way.  And it seems to work correctly
  1552. when I use Frontier to build and send test events:
  1553.  
  1554. with objectModel
  1555.     appleEvent ('JBtl', 'core', 'getd', '----', objspec (version), 'rtyp',
  1556. { 'xxxx', stringType})
  1557.  
  1558. does return the application version as a string, bypassing the impossible
  1559. type 'xxxx'.
  1560.  
  1561.    The equivalent AppleScript would be something like:
  1562.  
  1563. tell application "TrafficLight"
  1564.     get version as {=ABclass xxxx=BB, string}
  1565. end tell
  1566.  
  1567. but there is a syntax error reported on the {.  [Leaving out the =ABclass
  1568. xxxx=BB doesn't help:  {string} also produces the syntax error.]
  1569.  
  1570. I first just copied the definition of the get event from the English
  1571. Terminology.r header (the English version of the 'aeut'), into my 'aete' (I
  1572. only support get and set from the standard events (core) suite, at the
  1573. moment).  Then I adjusted the type of the optional "as" parameter to list,
  1574. rather than type, so the Dictionary now says:
  1575.  
  1576. get: Get the data for an object
  1577.     get  reference  -- the object whose data is to be returned
  1578.         [as  list]  -- the desired types for the data, in order of preferenc=
  1579. e
  1580.     Result:   anything  -- the data from the object
  1581.  
  1582. That doesn't allow a list after the as (neither does [as anything]...just
  1583. tried that).
  1584.  
  1585. So am I missing some AppleScript syntax, or is AppleScript 1.1 convinced
  1586. incorrectly that a class name must follow the as?
  1587.  
  1588. Shouldn't the 'aeut' match the Registry on this matter?
  1589.  
  1590.    --John
  1591.  
  1592. --
  1593. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  1594. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  1595. =========================================================================
  1596. Date:         Tue, 2 Aug 1994 13:47:07 -0700
  1597. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1598. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1599. From:         Rob Dewhirst <robd@FARALLON.COM>
  1600. Subject:      Re: Basic Questions
  1601.  
  1602. Peter Fleck writes:
  1603.  
  1604. >I log on a local TeleFinder BBS. TeleFinder is similar to First Class
  1605. >in that it gives the user a Mac-like interface. After downloading a
  1606. >bunch of files, I want TeleFinder to hang up the modem. TF does have a
  1607. >dictionary and it includes a Hang Up command.
  1608. >
  1609. >The problem is there is no way to tell when the download is done.
  1610. >First I tried sending Hang Up during the download, thinking it
  1611. >wouldn't activate until the download finished but no such luck. It
  1612. >hung up during the download.
  1613.  
  1614. Peter,
  1615.  
  1616. You might find an easier way to do this is to use Telefinder Pro, which
  1617. has its own built-in scripting language that includes the RECVMAC command.
  1618.  
  1619. TF Pro has a built-in terminal emulator and simple scripting language that
  1620. can be called from AppleScript.  You might find it easier to do all of your
  1621. file downloading from a terminal script, and use GUI for all other tasks.
  1622.  
  1623. It does seem silly that there is no "receive file" command for Telefinder.
  1624.  
  1625.  
  1626. I put Telefinder Pro 2.2.3 on gaea.
  1627. =========================================================================
  1628. Date:         Tue, 2 Aug 1994 08:50:18 -1000
  1629. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1630. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1631. From:         Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
  1632. Subject:      Re: Grabbing part of a text string.
  1633. In-Reply-To:  <9408021741.AA07552@uhunix.uhcc.Hawaii.Edu>
  1634.  
  1635. The following works fine:
  1636.  
  1637. set thestring to "Different text in here (everytime)"
  1638.  
  1639. set oldDelimiters to AppleScript's text item delimiters
  1640. set AppleScript's text item delimiters to "("
  1641. set partialText to 2nd text item of thestring
  1642. set AppleScript's text item delimiters to ")"
  1643. set enclosedText to 1st text item of partialText
  1644. set AppleScript's text item delimiters to oldDelimiters
  1645.  
  1646. display dialog enclosedText
  1647. =========================================================================
  1648. Date:         Tue, 2 Aug 1994 09:05:15 -1000
  1649. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1650. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1651. From:         Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
  1652. Subject:      How to get list of running apps
  1653.  
  1654. How do I get a list of the currently running applications?
  1655.  
  1656. I suppose I will have to resort to an osax.  It looks like Jon's Commands
  1657. doesn't do it, so which osaxen can do such a thing?
  1658.  
  1659. Thanks,
  1660. peter
  1661. =========================================================================
  1662. Date:         Tue, 2 Aug 1994 14:17:06 -0500
  1663. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1664. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1665. From:         Fred Terry <pfterry@LKS.CSI.COM>
  1666. Subject:      Re: How to get list of running apps
  1667. In-Reply-To:  Your message of "Tue, 02 Aug 94 09:05:15 -1100"
  1668.  
  1669. Peter,
  1670.  
  1671. >How do I get a list of the currently running applications?
  1672. >
  1673. >I suppose I will have to resort to an osax.  It looks like Jon's Commands
  1674. >doesn't do it, so which osaxen can do such a thing?
  1675.  
  1676. Use the Processes osax in Mark Alldritt's Script Tools collection.
  1677.  
  1678. ftp://gaea.kgs.ukans.edu/applescript/osaxen/ScriptTools1.3.sit.hqx
  1679.  
  1680. pf
  1681. =========================================================================
  1682. Date:         Tue, 2 Aug 1994 12:22:12 -0800
  1683. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1684. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1685. From:         "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
  1686. Subject:      Re: How to get list of running apps
  1687.  
  1688. At  9:05 8/2/94 -1000, Pete Hinely wrote:
  1689. >How do I get a list of the currently running applications?
  1690. >
  1691. >I suppose I will have to resort to an osax.  It looks like Jon's Commands
  1692. >doesn't do it, so which osaxen can do such a thing?
  1693.  
  1694. *grin* just found that today.  RunningApps, part of the Sweet Suite
  1695. (available on gaea)
  1696.  
  1697. -roy
  1698. =========================================================================
  1699. Date:         Tue, 2 Aug 1994 09:22:04 -1000
  1700. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1701. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1702. From:         Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
  1703. Subject:      My folder and file processor
  1704.  
  1705. The following is a little AppleScript that I wrote that can be used to
  1706. recursively process folders and files.  It only requires the "File
  1707. Commands" scripting addition that comes with AppleScript.  Maybe someone
  1708. has better solution, but feel free to use my code from this example.
  1709.  
  1710. -------------------------------------------------------
  1711. on RecursionNavigate(theFilesAndFolders)
  1712.     repeat with currentItem in theFilesAndFolders
  1713.         if (info for currentItem) is folder then
  1714.             set folderContents to (list folder (currentItem))
  1715.             set fullPathNameList to {}
  1716.             repeat with i in folderContents
  1717.                 set fullPathName to (currentItem as string) & i
  1718.                 if (info for fullPathName) is folder then
  1719.                     set fullPathName to (fullPathName as string) & ":"
  1720.                 end if
  1721.                 set end of fullPathNameList to fullPathName
  1722.             end repeat
  1723.             RecursionNavigate(fullPathNameList)
  1724.         else
  1725.             Process(currentItem)    --This is the action to do to files!
  1726.         end if
  1727.     end repeat
  1728. end RecursionNavigate
  1729. =========================================================================
  1730. Date:         Tue, 2 Aug 1994 14:27:13 -0500
  1731. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1732. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1733. From:         Fred Terry <pfterry@LKS.CSI.COM>
  1734. Subject:      new items on gaea
  1735.  
  1736. I've placed the latest version of KeyQuencer on gaea. You'll find it in
  1737.  
  1738. ftp://gaea.kgs.ukans.edu/applescript/addons/keyquencher12.hqx
  1739. ftp://gaea.kgs.ukans.edu/applescript/addons/keyquencherfatmacroeditor12.hqx
  1740.  
  1741. You will also find Telefinder Pro in
  1742.  
  1743. ftp://gaea.kgs.ukans.edu/applescript/addons/TeleFinderPro2.2.3.sit.hqx
  1744.  
  1745.  
  1746. pf
  1747. =========================================================================
  1748. Date:         Tue, 2 Aug 1994 17:12:50 EDT
  1749. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1750. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1751. From:         Shaddar@AOL.COM
  1752. Subject:      Rebuild Desktop -> Extensions Off
  1753.  
  1754.      I know that you can rebuild the desktop using AS by tossing out the
  1755. desktop files.  Is there any way to do the same for extensions off?
  1756.      I find writing a script to rebuild much easier than sitting, waiting,
  1757. holding down keys.  I'd like the same convenience for extensions off.
  1758.      Even if not possible with AS, is there anyway to have it restart with
  1759. extensions off other than holding down the shift key?
  1760.  
  1761. Thanks!  :)
  1762.  
  1763. ~Shaddar
  1764. =========================================================================
  1765. Date:         Wed, 3 Aug 1994 09:12:00 +1200
  1766. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1767. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1768. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  1769.               NZ" <LDO@WAIKATO.AC.NZ>
  1770. Subject:      Re: AppleScript, HyperCard & MPW
  1771.  
  1772. Mike Lennon asks:
  1773.  
  1774. >I would like to be able to execute a script in MPW by way of an AppleScript
  1775. >event in Hypercard.  I have been able to open MPW and write the the string in
  1776. >MPW from a script in Hypercard, but I can't figure out a way to execute,
  1777. >which in MPW is the "enter" key.  Do you know of any resources?
  1778.  
  1779. MPW supports the "do script" AppleEvent. You can use this to feed a shell
  1780. script sequence to execute. This can be a multi-line sequence if you want.
  1781.  
  1782. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  1783. Info & Tech Services Division              fax: +64-7-838-4066
  1784. University of Waikato            electric mail: ldo@waikato.ac.nz
  1785. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  1786. =========================================================================
  1787. Date:         Tue, 2 Aug 1994 14:52:12 -0800
  1788. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1789. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1790. From:         "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
  1791. Subject:      Re: Rebuild Desktop -> Extensions Off
  1792.  
  1793. At 17:12 8/2/94 -0400, Shaddar@AOL.COM wrote:
  1794. >     I know that you can rebuild the desktop using AS by tossing out the
  1795. >desktop files.
  1796.  
  1797. Something we here found just very recently: There's an even easier way that
  1798. doesn't involve rebooting your Mac:
  1799.  
  1800. Quit all applications
  1801. Force-quit Finder
  1802. While finder is coming up, holding down cmd & opt (like you would do when
  1803. rebooting)
  1804.  
  1805. Your mac will go on to rebuild the desktop files, and you save quite a bit
  1806. of time (My mac is so cluttered with extensions that it takes it a bit to
  1807. come up).
  1808.  
  1809. >Is there any way to do the same for extensions off?
  1810.  
  1811. Can't you just rename the Extensions folder? Actually, if you want to be
  1812. really neat, you can make it toggle ... something like (in pseudo-english):
  1813.  
  1814. set MyName to "Extensions.ASDis"
  1815. set mPath to (item 1 of (list disks)) & ":System Folder:"
  1816. set NewName to mPath & MyName
  1817. set OldName to "Extensions"
  1818.  
  1819. if NewName exists then
  1820.         renameFile NewName to OldName
  1821. else
  1822.         rename (mPath & OldName) to MyName
  1823. end if
  1824.  
  1825. The whole thing revolves around renameFile, which Jon was gracious enough
  1826. to supply -- check out Jon's Commands (a truly awesome scripting component.
  1827.  What's the singular of OSAX anyway?)
  1828.  
  1829. -roy
  1830. =========================================================================
  1831. Date:         Tue, 2 Aug 1994 15:07:00 -0700
  1832. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1833. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1834. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  1835. Subject:      Re: AppleScript, HyperCard & MPW
  1836.  
  1837. >Mike Lennon asks:
  1838. >
  1839. >>I would like to be able to execute a script in MPW by way of an AppleScript
  1840. >>event in Hypercard.  I have been able to open MPW and write the the string in
  1841. >>MPW from a script in Hypercard, but I can't figure out a way to execute,
  1842. >>which in MPW is the "enter" key.  Do you know of any resources?
  1843. >
  1844. >MPW supports the "do script" AppleEvent. You can use this to feed a shell
  1845. >script sequence to execute. This can be a multi-line sequence if you want.
  1846.  
  1847. Sufficiently old versions of MPW and ToolServer seriously hosed the reply
  1848. event to a do script in the face of error conditions in the script (and
  1849. sometimes no error conditions, too).  [Current versions seem fine.]
  1850.  
  1851. One of the old ToolServer versions was, I think, my favorite:  it appeared
  1852. to have a two-byte error code variable, and put the 'errn' into the reply
  1853. as a 4-byte ('long') value by using AEPutParamPtr () pointing at the error
  1854. code variable and specifying 'long' as the type and 4 as the length,
  1855. thereby putting out a non-zero 'errn' only the top two bytes of which
  1856. mattered.
  1857.  
  1858. Fine in current versions...beware of odd effects with older ones.
  1859.    --John
  1860.  
  1861. --
  1862. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  1863. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  1864. =========================================================================
  1865. Date:         Tue, 2 Aug 1994 18:12:43 -0400
  1866. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1867. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1868. From:         Mark Duffield <duffiem@AA.WL.COM>
  1869. Subject:      Re: Rebuild Desktop -> Extensions Off
  1870. In-Reply-To:  "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM> "Re: Rebuild Desktop
  1871.               -> Extensions Off" (Aug  2,  2:52pm)
  1872.  
  1873. On Aug 2,  2:52pm, Roy S. Rapoport wrote:
  1874. > Subject: Re: Rebuild Desktop -> Extensions Off
  1875. > At 17:12 8/2/94 -0400, Shaddar@AOL.COM wrote:
  1876. > >     I know that you can rebuild the desktop using AS by tossing out the
  1877. > >desktop files.
  1878. >
  1879. > Something we here found just very recently: There's an even easier way that
  1880. > doesn't involve rebooting your Mac:
  1881. >
  1882. > Quit all applications
  1883. > Force-quit Finder
  1884. > While finder is coming up, holding down cmd & opt (like you would do when
  1885. > rebooting)
  1886. >
  1887. > Your mac will go on to rebuild the desktop files, and you save quite a bit
  1888. > of time (My mac is so cluttered with extensions that it takes it a bit to
  1889. > come up).
  1890. >
  1891.  
  1892. This is NOT the same as rebooting with cmd-opt held down.  I don't know the
  1893. entire explanation of this, but as I understand it there are times when
  1894. you will not get a complete rebuild of your desktop files when rebuilt in this
  1895. manner.
  1896.  
  1897. [Discussion of Extension Folder renaming omitted to save bandwidth]
  1898.  
  1899. > -roy
  1900. >-- End of excerpt from Roy S. Rapoport
  1901.  
  1902.  
  1903.  
  1904.  
  1905. --
  1906. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1907.  Mark J. Duffield                    | duffiem@aa.wl.com
  1908.  Sr. Systems Analyst                 |
  1909.  Preclinical Scientific Computing    | MIME Spoken here.
  1910.  Parke Davis Pharmaceutical Research |
  1911.  Ann Arbor, MI  48105                |
  1912. =========================================================================
  1913. Date:         Tue, 2 Aug 1994 15:24:57 -0800
  1914. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1915. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1916. From:         "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
  1917. Subject:      Re: Rebuild Desktop -> Extensions Off
  1918.  
  1919. At 18:12 8/2/94 -0400, Mark Duffield wrote:
  1920. >This is NOT the same as rebooting with cmd-opt held down.  I don't know the
  1921. >entire explanation of this, but as I understand it there are times when
  1922. >you will not get a complete rebuild of your desktop files when rebuilt in this
  1923. >manner.
  1924.  
  1925. Well, umm, if you say so.   Do you know where I could find an explanation
  1926. of why it's not the same?
  1927.  
  1928. -roy
  1929. =========================================================================
  1930. Date:         Tue, 2 Aug 1994 17:20:50 -0800
  1931. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1932. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1933. From:         "Hon, Michael T" <honmt@TXPCAP.HOU.XWH.BP.COM>
  1934. Subject:      Re: An Applescript to play a System 7 2x clickable sound -
  1935.               possible?
  1936.  
  1937. MR Mac - Michael Robertson <robertso@SDSC.EDU> sez:
  1938.  
  1939. > I need a script to play a System 7 sound file. You know the ones you can
  1940. > double click and automatically play. Any ideas?
  1941.  
  1942. In GTQ, there's a play sound OSAX.  It's dictionary:
  1943.  
  1944. play: plays a specified sound stored in a sound file
  1945.         play  reference  -- reference to the sound you want to play within the
  1946. specified file
  1947.                 [in  file specification]  -- the file containing the sound (if n
  1948. o file is
  1949. specified, the system sound list is used)
  1950.                 [at volume  small integer]  -- sound volume to play the sound at
  1951.  
  1952. The way to make it work, given a sound file "Hard Drive:Sounds:R&S:joyyy!!!"
  1953. would be:
  1954.  
  1955. play every sound in "Hard Drive:Sounds:R&S:joyyy!!!"
  1956.  
  1957. The "every" bit is key.
  1958.  
  1959. HTH.
  1960.  
  1961. --
  1962. Mike Hon
  1963. Software Consultant                                 honmt@txpcap.hou.xwh.bp.com
  1964. Precision Task Group  Houston, TX                                  713/560-3017
  1965. =========================================================================
  1966. Date:         Wed, 3 Aug 1994 10:39:00 +1200
  1967. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1968. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1969. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  1970.               NZ" <LDO@WAIKATO.AC.NZ>
  1971. Subject:      Re: Rebuild Desktop -> Extensions Off
  1972.  
  1973. "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM> asks:
  1974.  
  1975. >At 18:12 8/2/94 -0400, Mark Duffield wrote:
  1976. >>This is NOT the same as rebooting with cmd-opt held down.
  1977. >
  1978. >Well, umm, if you say so.   Do you know where I could find an explanation
  1979. >of why it's not the same?
  1980.  
  1981. As I understand it, the difference is that command-option doesn't create
  1982. new "Desktop DB" and "Desktop DF" files, it simply tries to clear out the
  1983. contents of the existing files and reuse them. However, there are situations
  1984. where this doesn't clear up the corruption that may occur. Thus, to be safe,
  1985. you need to delete these desktop files and force the system to create new ones.
  1986.  
  1987. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  1988. Info & Tech Services Division              fax: +64-7-838-4066
  1989. University of Waikato            electric mail: ldo@waikato.ac.nz
  1990. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  1991. =========================================================================
  1992. Date:         Tue, 2 Aug 1994 17:52:54 -0700
  1993. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1994. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1995. From:         Michael Clasen <cmdesign@NETCOM.COM>
  1996. Subject:      Re: Rebuild Desktop -> Extensions Off
  1997.  
  1998. >On Aug 2,  2:52pm, Roy S. Rapoport wrote:
  1999. >> Subject: Re: Rebuild Desktop -> Extensions Off
  2000. >> At 17:12 8/2/94 -0400, Shaddar@AOL.COM wrote:
  2001. >> >     I know that you can rebuild the desktop using AS by tossing out the
  2002. >> >desktop files.
  2003. >>
  2004. >> Something we here found just very recently: There's an even easier way that
  2005. >> doesn't involve rebooting your Mac:
  2006. >>
  2007. >> Quit all applications
  2008. >> Force-quit Finder
  2009. >> While finder is coming up, holding down cmd & opt (like you would do when
  2010. >> rebooting)
  2011. >>
  2012. >> Your mac will go on to rebuild the desktop files, and you save quite a bit
  2013. >> of time (My mac is so cluttered with extensions that it takes it a bit to
  2014. >> come up).
  2015. >>
  2016. >
  2017. >This is NOT the same as rebooting with cmd-opt held down.  I don't know the
  2018. >entire explanation of this, but as I understand it there are times when
  2019. >you will not get a complete rebuild of your desktop files when rebuilt in this
  2020. >manner.
  2021. >
  2022. >[Discussion of Extension Folder renaming omitted to save bandwidth]
  2023. ==========================================
  2024. Sometimes this will hang the Mac; be sure to quit all applications before
  2025. trying this. The best rebuild is to turn off all extensions and the rebuild
  2026. on reboot. I have been told this is the cleanest rebuild. Diskdoubler also
  2027. used to distribute a Desktop Reset to do a complete rebuild; I think it
  2028. deleted the desktop database, if I remember correctly.
  2029. That's all for now
  2030.  
  2031. -------
  2032. Michael A. Clasen   |  Voice - 1-415-703-8736
  2033. Clement Mok Design  |  Fax   - 1-415-703-9901
  2034. 600 Townsend St.    |  Internet: cmdesign@netcom.com
  2035. -------------------------------------------------
  2036. Play for me, oh sweetest lute and lift away all strife
  2037. Ply for me to celebrate the joyousness of life
  2038. MP-C --1994
  2039. =========================================================================
  2040. Date:         Tue, 2 Aug 1994 22:59:52 -0400
  2041. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2042. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2043. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  2044. Subject:      Re: My folder and file processor
  2045. In-Reply-To:  <no.id> from "Pete Hinely" at Aug 2, 94 09:22:04 am
  2046.  
  2047. --Pete Hinely wrote:
  2048. >
  2049. >The following is a little AppleScript that I wrote that can be used to
  2050. >recursively process folders and files.  It only requires the "File
  2051. >Commands" scripting addition that comes with AppleScript.  Maybe someone
  2052. >has better solution, but feel free to use my code from this example.
  2053.  
  2054.     Well, your's looks pretty good, but you really need to take a look
  2055. at the walk folders OSAX. It's part of Jon's Commands and it does what
  2056. you want without using Apple Events to do all of the recursion. It makes
  2057. for a much more elegent solution. At least with the current version of
  2058. AppleScript.
  2059.  
  2060. -Hades
  2061. =========================================================================
  2062. Date:         Tue, 2 Aug 1994 23:00:44 -0400
  2063. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2064. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2065. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  2066. Subject:      Re: Rebuild Desktop -> Extensions Off
  2067. In-Reply-To:  <no.id> from "Roy S. Rapoport" at Aug 2, 94 02:52:12 pm
  2068.  
  2069. --Roy S. Rapoport wrote:
  2070. >
  2071. >What's the singular of OSAX anyway?)
  2072.  
  2073.     OSAX is singular. The plural is OSAXEN.
  2074.  
  2075. -Hades
  2076. =========================================================================
  2077. Date:         Tue, 2 Aug 1994 23:39:15 CDT
  2078. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2079. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2080. From:         Peter Fleck - SMM <fleck@ASTRO.SPA.UMN.EDU>
  2081. Subject:      Re: How to get list of running apps
  2082.  
  2083. GTQ Scripting Library has the List Applications OSAX for providing all running
  2084. applications. It also has an Is Running OSAX (I may not have the exact name)
  2085. for querying about a specific application.
  2086.  
  2087. Peter
  2088. =========================================================================
  2089. Date:         Tue, 2 Aug 1994 20:02:16 -1000
  2090. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2091. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2092. From:         Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
  2093. Subject:      Re: My folder and file processor
  2094. In-Reply-To:  <9408030258.AA03618@uhunix.uhcc.Hawaii.Edu>
  2095.  
  2096. >
  2097. >     Well, your's looks pretty good, but you really need to take a look
  2098. > at the walk folders OSAX. It's part of Jon's Commands and it does what
  2099. > you want without using Apple Events to do all of the recursion. It makes
  2100. > for a much more elegent solution. At least with the current version of
  2101. > AppleScript.
  2102. >
  2103. > -Hades
  2104. >
  2105.  
  2106. As Jon Pugh, the author of Jon's Commands, has confirmed, the "walk
  2107. folders" command does not work in all instances.  I started out trying to
  2108. use his command for my MacPGP scripts. As I remember, with the "walk
  2109. folder" command you cannot access a global variable from within script you
  2110. are processing the files or folders with.
  2111.  
  2112. -peter
  2113. =========================================================================
  2114. Date:         Tue, 2 Aug 1994 23:46:16 -0700
  2115. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2116. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2117. From:         Jon Pugh <jonpugh@NETCOM.COM>
  2118. Subject:      Re: How does AS know which osax to use?
  2119.  
  2120. >From:    "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  2121. >>how does AS know which osax to choose from when asked to perform a command?
  2122. >>For example, Apple's System Object Suite, The Sweet Suite (by Gerry Davis)
  2123. >>and the Script Tools Suite (by Mark Alldritt) all define a 'choose folder'
  2124. >>command ***with the same syntax***. If one has all of these in the
  2125. >>Scripting Additions folder, how does AS decide which to use?
  2126. >
  2127. >Jon Pugh no doubt knows, but...most likely, either the first or last osax
  2128. >encountered which uses a given syntax for a particular event class/event id
  2129. >pair will be chosen.  So long as they do the same thing, it really doesn't
  2130. >matter.
  2131.  
  2132. The problem is when one of them has bugs and you would like to throw away
  2133. the culprit.  Luckily, the choose folder command is pretty simple.  ;)
  2134.  
  2135. The trouble is, I don't really know which it is, first or last.  I've never
  2136. cared.  I follow John's advice below, which is to not pollute your
  2137. Scripting Additions folder.  John and I had a nice discussion some time ago
  2138. about how the loading mechanism is done.  It makes it simple enough to
  2139. install needed osaxen when the time comes.  I only install what I'm using
  2140. and pull things that don't work.
  2141.  
  2142. >This issue has led me to do three things:
  2143. >
  2144. >1.  Keep the Scripting Additions folder as empty as possible.  (For
  2145. >example, I have the GTQ library...I have only about two of the pieces
  2146. >installed at the moment.)
  2147. >
  2148. >2.  Not add to the supply.
  2149. >
  2150. >3.  Use Finder labels to mark the non-Apple Additions I do have, so I can
  2151. >find them quickly and rip them out.
  2152.  
  2153. My plan is to someday (after I burn out from too much work, which may be
  2154. soon) finish my class info osaxen which will allow scripts to police the
  2155. installed osaxen.  They should also be able to install things too, but
  2156. getting them to work in the executing script would be tricky.  I think it
  2157. could be done with another osax, but couldn't everything?
  2158.  
  2159. Life goes on...
  2160.  
  2161. Jon
  2162. =========================================================================
  2163. Date:         Tue, 2 Aug 1994 23:46:20 -0700
  2164. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2165. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2166. From:         Jon Pugh <jonpugh@NETCOM.COM>
  2167. Subject:      Re: Frontier records & lists
  2168.  
  2169. >From:    "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  2170. >
  2171. >>I have question regarding accessing a list of records in Frontier.
  2172. >>When scripting Quark, you can do something like
  2173. >>
  2174. >>   get(page[1].picturebox[color == "foo"].name)
  2175. >>
  2176. >>and you will be returned a list of the names of all the picture boxes one
  2177. >>page 1 that have the color "foo".
  2178. >
  2179. >That is achieved through a collaboration (on one of two levels) between
  2180. >(speaking carelessly) the Apple Event Manager and the Application.
  2181. >[Really, it's a part of the AE Manager which appears as a separate
  2182. >library.].  I suspect XPress uses the faster level (in which the
  2183. >application somehow marks elements for further consideration) rather than
  2184. >the slower level (in which the Manager has to ask for individual
  2185. >comparisons for each and every element to be tested).
  2186.  
  2187. Actually, I believe that Quark's scripting author Dave Shaver wrote his own
  2188. replacement of the OSL (the Open Scripting Library which implements the
  2189. object specifier routines in Inside Macintosh - InterApplication
  2190. Communication) since the Apple OSL isn't all it could be.  It's faster than
  2191. the OSL and probably has its own quirks.  ;)
  2192.  
  2193. Jon
  2194. =========================================================================
  2195. Date:         Tue, 2 Aug 1994 23:46:37 -0700
  2196. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2197. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2198. From:         Jon Pugh <jonpugh@NETCOM.COM>
  2199. Subject:      Re: Get foo as {bar, baz}
  2200.  
  2201. >From:    "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  2202. >
  2203. >   The Apple Event Registry defines the optional parameter to the Get Data
  2204. >event as being a list of types, in order of preference.  The target
  2205. >application is supposed to return the desired data in the type requested by
  2206. >the left-most item in the list which it CAN use to represent the data.  [It
  2207. >is not an error if the first type[s] in the list are impossible, only if
  2208. >all of them are.]
  2209. >
  2210. >...
  2211. >
  2212. >So am I missing some AppleScript syntax, or is AppleScript 1.1 convinced
  2213. >incorrectly that a class name must follow the as?
  2214. >
  2215. >Shouldn't the 'aeut' match the Registry on this matter?
  2216.  
  2217. Actually, the aete and the aeut are pretty immaterial when building events
  2218. and object specifiers.  All the terminology resources provide is a mapping
  2219. from text to codes.  Events are idnetified by comparing the term you typed
  2220. against the terms in the scope of your tell block.  Once the event is
  2221. found, parameters are added with the only structure imposed by
  2222. AppleScript's rules.  None of the events are checked for required
  2223. parameters or anything.  All of that is left for the app to implement.
  2224.  
  2225. The as issue is simply an oversight.  I didn't remember this tidbit from
  2226. the Registry and I don't think the rest of the team did either.  The way it
  2227. seems to have been remembered and implemented is as a single prefered type.
  2228. That's how I implemented it in PhotoFlash too.  It would be trivial to fix
  2229. it in the app, but since AppleScript seems to be suffering from the same
  2230. limitation, its of questionable worth.  In addition, it appears that it is
  2231. most often the case (in my script writing experience) that you either want
  2232. data as a single specific type.  Using a list seems like unnecessary
  2233. overkill, despite the usefullness.  You can also use try/catch to deal with
  2234. multiple types, so it's not crippling.
  2235.  
  2236. Jon
  2237. =========================================================================
  2238. Date:         Wed, 3 Aug 1994 08:11:39 -0700
  2239. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2240. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2241. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  2242. Subject:      Re: Get foo as {bar, baz}
  2243.  
  2244. At 23:46 8/2/94 -0700, Jon Pugh wrote:
  2245. >The as issue is simply an oversight.  I didn't remember this tidbit from
  2246. >the Registry and I don't think the rest of the team did either.  The way it
  2247. >seems to have been remembered and implemented is as a single prefered type.
  2248. >That's how I implemented it in PhotoFlash too.  It would be trivial to fix
  2249. >it in the app, but since AppleScript seems to be suffering from the same
  2250. >limitation, its of questionable worth.  In addition, it appears that it is
  2251. >most often the case (in my script writing experience) that you either want
  2252. >data as a single specific type.  Using a list seems like unnecessary
  2253. >overkill, despite the usefullness.  You can also use try/catch to deal with
  2254. >multiple types, so it's not crippling.
  2255.  
  2256. I had forgotten, too.  I implemented the handling of the 'rtyp' parameter
  2257. as if it should be a single typeType...then I went back and read the
  2258. Registry (and was rather surprised).  And re-implemented.  [Frontier's
  2259. core.get () glue coerces the as parameter to a string4 (typeType), so it
  2260. too doesn't deal with the list case...I had to use a "raw" Frontier
  2261. appleEvent () verb to test my toy app.]
  2262.  
  2263. I think I'll implement per the Registry in the future, even though
  2264. AppleScript can't express the list form (as of 1.1).  Just in case some
  2265. client program makes the call, rather than a scripting system.  [It's a
  2266. little hard to conceive of a scripting situation in which one would want a
  2267. list of types there, unless (I suppose) one wanted to cover an earlier and
  2268. a later version of some application which provide different types for some
  2269. object or property.]
  2270.  
  2271. Thanks, Jon.
  2272.  
  2273.    --John
  2274.  
  2275. --
  2276. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  2277. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  2278. =========================================================================
  2279. Date:         Wed, 3 Aug 1994 08:17:48 -0800
  2280. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2281. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2282. From:         "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
  2283. Subject:      Re: How does AS know which osax to use?
  2284.  
  2285. At 23:46 8/2/94 -0700, Jon Pugh wrote:
  2286. >The trouble is, I don't really know which it is, first or last.  I've never
  2287. >cared.  I follow John's advice below, which is to not pollute your
  2288. >Scripting Additions folder.  John and I had a nice discussion some time ago
  2289. >about how the loading mechanism is done.  It makes it simple enough to
  2290. >install needed osaxen when the time comes.  I only install what I'm using
  2291. >and pull things that don't work.
  2292.  
  2293. Hmm.  Good advice.   One question:
  2294.  
  2295. I've got a bunch of OSAXEN (my policy up to now, unfortunatelly, has been
  2296. to install things if they look cool :) ).  I've got no real idea which are
  2297. used by each script, and this can be important, because I'm exporting these
  2298. scripts to various other machines at work.  As it is, my current policy on
  2299. that is to periodically install *all* the osaxen I have on my machine on
  2300. the other machines, but I'd love to find a way to find which osaxen a
  2301. script is using.
  2302.  
  2303. Any way to do that?
  2304.  
  2305. -roy
  2306. =========================================================================
  2307. Date:         Wed, 3 Aug 1994 08:56:28 -0700
  2308. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2309. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2310. From:         Steve Michel <michel@NETCOM.COM>
  2311. Subject:      Re: Rebuild Desktop -> Extensions Off
  2312.  
  2313. Michael Clasen wrote:
  2314.  
  2315. >The best rebuild is to turn off all extensions and the rebuild
  2316. >on reboot. I have been told this is the cleanest rebuild.
  2317. >
  2318.  
  2319.  
  2320. One problem with rebuilding the desktop with Extensions off occurs if you
  2321. use Macintosh Easy Open, which will be included with 7.5. MEO rebuilds the
  2322. desktop _differently_ than normally. Thus, if you rebuild w/o Extensions,
  2323. the next time you restart _with_ extensions, MEO will force a rebuild.
  2324.  
  2325. I found a trick with 7.1: create a file (with anything) named Desktop at
  2326. the top level of your hard disk. On the next rebuild, the Finder will see
  2327. that this file is newer than the DB and DF files, and rebuild the desktop.
  2328. This also works with 7.5 (though not all programs will let you replace the
  2329. existing Desktop file at the top of the disk.
  2330.  
  2331. So, given this, I tried using the Scriptable Finder to create a new
  2332. "desktop" file at the top of the disk. This didn't work, because SF won't
  2333. let you replace an invisible file. So, I used the Read/Write Commands OSAX
  2334. to write a single space to the desktop file, thus changing its modification
  2335. date. Here, then, is a script that does this:
  2336.  
  2337.         copy alias ((path to startup disk as text) & "desktop") to desktopfile
  2338.         open for access desktopfile with write permission
  2339.         write " " to desktopfile -- so the modification date is changed
  2340.         close access desktopfile
  2341.  
  2342.         tell application "Finder"
  2343.                 restart
  2344.         end tell
  2345.  
  2346. I have tested this, though not extensively, and it works on my system; your
  2347. mileage may vary. One thing that should be added is a check to make sure
  2348. the desktop file exists. Otherwise, simply save it as an application,
  2349. double-click on it, and the Mac restarts & the desktop file is rebuilt.
  2350.  
  2351. BTW, an early beta of the Scriptable Finder had a "rebuild desktop
  2352. database" command. There were a bunch of problems with this (not the least
  2353. was you had to set a very large timeout figure to keep the script from
  2354. erroring, and the fact that it didn't take into account the MEO portion of
  2355. the desktop files), and it was removed.
  2356.  
  2357. Steve
  2358. =========================================================================
  2359. Date:         Wed, 3 Aug 1994 10:59:44 CDT
  2360. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2361. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2362. From:         Taylor Leaming H3-283 <leamingt@TOBOR.SPS.MOT.COM>
  2363. Subject:      Visual cues that an AppleScript is running
  2364.  
  2365. Greetings,
  2366.  
  2367. I know this may sound like a lame question, and there may even be such
  2368. something out there somewhere already that does this, but I don't have a lot
  2369. of time to go hunting (and I'm not as involved in AS'ing as many of you
  2370. obviously are) and this is certainly the right place to ask:
  2371.  
  2372. Is there some extension, OSAX or such that will give me a visual indication
  2373. that an AppleScript is running, other than a generic spinning cursor?
  2374.  
  2375. This is bad, since my wife (and myself) will routinely use some AppleScripts
  2376. that I have written for SITcomm to automate connections and such, but on
  2377. occassion the actions will fail and AS will continue to run until it times
  2378. out.  She (i) will notice this, and, forgetting that AS is still running
  2379. try to do whatever and can't until the script has been terminated.
  2380. A visual indicator besides the boring spinning cursor would be very useful.
  2381.  
  2382. For example, a little AppleScript icon in the menu bar that blinks on and off,
  2383. or a trite message or even just the AS name, in the same fashion as SuperClock,
  2384. in the menu bar.  Perhaps maybe a dialog box with a CANCEL to obviously kill
  2385. the script.
  2386.  
  2387. Does anybody have suggestions, ideas or solutions?
  2388.  
  2389. Thanks in advance,
  2390.  
  2391. Taylor
  2392.  
  2393.  
  2394.     +-----------------------------------------------------------------+
  2395.     |   Taylor Leaming                   leamingt@tobor.sps.mot.com   |
  2396.     |   Motorola, Inc.                                                |
  2397.     |   Austin, Texas                                (512) 891-6211   |
  2398.     +-----------------------------------------------------------------+
  2399. =========================================================================
  2400. Date:         Wed, 3 Aug 1994 11:05:08 -0700
  2401. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2402. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2403. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  2404. Subject:      Re: Visual cues that an AppleScript is running
  2405.  
  2406. >Greetings,
  2407. >
  2408. >I know this may sound like a lame question, and there may even be such
  2409. >something out there somewhere already that does this, but I don't have a lot
  2410. >of time to go hunting (and I'm not as involved in AS'ing as many of you
  2411. >obviously are) and this is certainly the right place to ask:
  2412. >
  2413. >Is there some extension, OSAX or such that will give me a visual indication
  2414. >that an AppleScript is running, other than a generic spinning cursor?
  2415.  
  2416. One possibility is the ProgressBar application, which puts up a (surprise!)
  2417. progress bar window.  You control a couple of lines of caption (and the
  2418. window title), and the current amount of progress with AppleScript
  2419. commands.
  2420.  
  2421. It's on gaea, somewhere in the /applescript area.  Unfortunately, gaea is
  2422. either sick or overloaded at the moment (it produces an effect I haven't
  2423. seen before, using Anarchie), so I can't give you the path.
  2424.  
  2425.    --John
  2426.  
  2427.  
  2428. --
  2429. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  2430. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  2431. =========================================================================
  2432. Date:         Wed, 3 Aug 1994 08:14:37 -1000
  2433. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2434. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2435. From:         Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
  2436. Subject:      Re: Rebuild Desktop -> Extensions Off
  2437. In-Reply-To:  <9408031556.AA00919@uhunix.uhcc.Hawaii.Edu>
  2438.  
  2439. On Wed, 3 Aug 1994, Steve Michel wrote:
  2440. >
  2441. > So, given this, I tried using the Scriptable Finder to create a new
  2442. > "desktop" file at the top of the disk. This didn't work, because SF won't
  2443. > let you replace an invisible file. So, I used the Read/Write Commands OSAX
  2444. > to write a single space to the desktop file, thus changing its modification
  2445.  
  2446. Another cool goody from the Finder Scripting Toolkit....  Instead of using
  2447. the Scriptable Finder to restart, just use the normal Finder to do it.
  2448.  
  2449.  
  2450. tell application "Finder" to <<event FNDRrest>>
  2451.  
  2452. -peter
  2453.  
  2454.  
  2455. P.S. Replace the "<<" with an option-backslash and the ">>" with a
  2456. shift-option-backslash in the script editor.
  2457. =========================================================================
  2458. Date:         Wed, 3 Aug 1994 14:30:04 -0500
  2459. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2460. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2461. From:         Fred Terry <pfterry@LKS.CSI.COM>
  2462. Subject:      Re: Visual cues that an AppleScript is running
  2463. In-Reply-To:  Your message of "Wed, 03 Aug 94 11:05:08 PDT"
  2464.  
  2465. John Baxter said....
  2466.  
  2467. >It's on gaea, somewhere in the /applescript area.  Unfortunately, gaea is
  2468. >either sick or overloaded at the moment (it produces an effect I haven't
  2469. >seen before, using Anarchie), so I can't give you the path.
  2470.  
  2471.  
  2472. ftp://gaea.kgs.ukans.edu/applescript/scriptableapps/ProgressBar.101.hqx
  2473. =========================================================================
  2474. Date:         Wed, 3 Aug 1994 15:38:10 -0400
  2475. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2476. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2477. From:         "Kevin A. Gemeinhart" <kg14+@ANDREW.CMU.EDU>
  2478. Subject:      Value Lists in FMPro via AS
  2479.  
  2480. Does anyone out there know how to access the value list of a FMPro field
  2481. using AppleScript?
  2482.  
  2483. Thanks,
  2484.  
  2485. Kevin
  2486. =========================================================================
  2487. Date:         Wed, 3 Aug 1994 15:57:37 EST
  2488. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2489. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2490. From:         Kim-son Tran <ktran@CC.ATINC.COM>
  2491. Subject:      Sample Scripts
  2492.  
  2493. Does anyone out there have any sample scripts which incorporates the process of
  2494. editing text files without the use of a scriptable text editor. I'm trying to
  2495. design a droplet which will read a text file and find either a character or a
  2496. word within a text file and delete/replace them.
  2497.  
  2498. I know that Script Tools 1.3 has the File IO addition which can facilitate
  2499. reading/writing of text files but I'm not too clear on how to use the read/write
  2500. and position calls to do editing. Should I be using this OSAX or something else?
  2501.  
  2502. Any help would be greatly appreciated.
  2503.  
  2504. Internet:   kim-son_tran@cc.atinc.com or tk@cc.atinc.com
  2505. =========================================================================
  2506. Date:         Wed, 3 Aug 1994 15:50:07 EDT
  2507. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2508. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2509. Comments:     Resent-From: Atul Butte <ATUL@BROWNVM>
  2510. Comments:     Originally-From: Atul Butte <ATUL@BROWNVM>
  2511. From:         Atul Butte <ATUL@BROWNVM.BITNET>
  2512. Subject:      Some answers for [Re: More on Frontier & TCP/IP]
  2513.  
  2514. >There's an obvious problem with this script: it depends on coarse
  2515. >timing figures to determine if the connection has finished.  Basically,
  2516. >if nothing's come over the line in 10 seconds, it assumes the transfer
  2517. >is done.  I'm still trying to understand the TCP osax interface to
  2518. >determine if there's a better way to check for connection closure.
  2519.  
  2520. There are two better ways:
  2521.  
  2522. First, in your loop, you could repeat while (connection status of (tcp
  2523.    status stream <yourstream> ) = Connected
  2524.  
  2525. (i don't have the exact syntax in front of me at this moment).  tcp status
  2526. will return a stream status record with the current status of the stream
  2527. (including how many bytes are waiting to be read, whether the connection is
  2528. still up, to whom are we talking, etc).
  2529.  
  2530. However, the second, and better way, is to do something like:
  2531. tcp receive stream <yourstream> destination file "your file name" maximum
  2532. seconds 20
  2533.  
  2534. This will tell the osax to automatically download all remaining data on the
  2535. stream into the file you specify UNTIL EITHER the connection is closed OR
  2536. 20 seconds go by without any new data.
  2537.  
  2538. Hope these tips are helpful.
  2539.  
  2540. Atul  (author of that tcp osax...)
  2541. atul_butte@brown.edu
  2542.  
  2543. P.S.  I ACTUALLY have a script working that will TELNET to a NeXT computer...
  2544. now once I make sure it works for other hosts, I will release it.  Also,
  2545. I know I promised those FaceSpan/TCPIP projects... I'll release them as
  2546. soon as possible...
  2547. =========================================================================
  2548. Date:         Wed, 3 Aug 1994 16:18:19 -0500
  2549. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2550. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2551. From:         David Myers <myers@ACEC.COM>
  2552. Subject:      Re: Some answers for [Re: More on Frontier & TCP/IP]
  2553.  
  2554. >There are two better ways:
  2555. >
  2556. >First, in your loop, you could repeat while (connection status of (tcp
  2557. >   status stream <yourstream> ) = Connected
  2558.  
  2559.  
  2560. It seems to me that I played around with this, but in Frontier you
  2561. don't get "Connected", but rather a binary value.  While I'm sure
  2562. that value could be interpreted bit-wise to recover the necessary
  2563. status info, I haven't had a chance to dig deeper.  (My memory
  2564. of this is hazy now, but I *think* this was how it worked.)
  2565.  
  2566.  
  2567. >
  2568. >(i don't have the exact syntax in front of me at this moment).  tcp status
  2569. >will return a stream status record with the current status of the stream
  2570. >(including how many bytes are waiting to be read, whether the connection is
  2571. >still up, to whom are we talking, etc).
  2572. >
  2573. >However, the second, and better way, is to do something like:
  2574. >tcp receive stream <yourstream> destination file "your file name" maximum
  2575. >seconds 20
  2576. >
  2577. >This will tell the osax to automatically download all remaining data on the
  2578. >stream into the file you specify UNTIL EITHER the connection is closed OR
  2579. >20 seconds go by without any new data.
  2580. >
  2581.  
  2582.  
  2583. This works great, except it doesn't run asynchronously.  If you want to
  2584. do stuff while the transfer goes on in the background, you're out of
  2585. luck.
  2586.  
  2587. -David.
  2588.  
  2589.  
  2590. ____________________________________________________
  2591.  
  2592. David C. Myers
  2593. myers@acec.com
  2594. =========================================================================
  2595. Date:         Wed, 3 Aug 1994 10:22:02 -1000
  2596. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2597. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2598. From:         Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
  2599. Subject:      Re: Sample Scripts
  2600. In-Reply-To:  <9408031949.AA15726@uhunix.uhcc.Hawaii.Edu>
  2601.  
  2602. On Wed, 3 Aug 1994, Kim-son Tran wrote:
  2603.  
  2604. > Does anyone out there have any sample scripts which incorporates the process o
  2605. > editing text files without the use of a scriptable text editor. I'm trying to
  2606. > design a droplet which will read a text file and find either a character or a
  2607. > word within a text file and delete/replace them.
  2608. >
  2609.  
  2610. One way to do it is with the Read/Write scripting addition that comes with
  2611. AS 1.1.  Basically what you do is read in the text using the delimiter
  2612. that would make things easiest.  If the word your looking for has quotes
  2613. around it, read using " as a delimiter.  I think you can use spaces and
  2614. line returns as delimiters also.
  2615.  
  2616. So you read using the delimiter, and modify the item you want. Then you
  2617. write the file out using a loop to process the delimited text list.  You
  2618. must add the delimiter back in after you write each item of the list.
  2619.  
  2620. It sounds harder than it is.  If you want some code, I can post it.
  2621. =========================================================================
  2622. Date:         Wed, 3 Aug 1994 13:32:42 -0800
  2623. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2624. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2625. From:         "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
  2626. Subject:      What is FrontMost
  2627.  
  2628. And where can I get it?
  2629. =========================================================================
  2630. Date:         Wed, 3 Aug 1994 10:43:48 -1000
  2631. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2632. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2633. From:         Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
  2634. Subject:      Re: Sample Scripts
  2635. In-Reply-To:  <Pine.3.89.9408032016.A22200-0100000@abdallah>
  2636.  
  2637. On Wed, 3 Aug 1994, Borre Ludvigsen wrote:
  2638.  
  2639. > On Wed, 3 Aug 1994, Pete Hinely wrote:
  2640. >
  2641. > > It sounds harder than it is.  If you want some code, I can post it.
  2642. >
  2643. > yes please - trying to fix Norwegian characters and quotes is killing me.
  2644. >
  2645.  
  2646. Aren't there any scriptable apps out there that will find and
  2647. replace?  That might be an easier and faster route.
  2648.  
  2649. I doubt if this code will help you change norwegian quotes, but here it
  2650. is anyway.
  2651.  
  2652. You will have to expand the following code to work for a more generalized
  2653. case. This example finds the first AND ONLY quoted word in a file and
  2654. replaces it.
  2655.  
  2656. set delimitedTextList to read configFile as text using delimiters {"\""}
  2657. --set oldWord to item 2 of delimitedTextList
  2658.  
  2659. display dialog "Enter new word:" default answer ""
  2660. set newWord to (text returned of result)
  2661.  
  2662. open for access configFile with write permission
  2663. write 1st item of delimitedTextList & "\"" to configFile
  2664. set positionMarker to (length of first item of delimitedTextList) + 2
  2665. write newWord & "\"" to configFile starting at positionMarker
  2666. set positionMarker to positionMarker + (length of newWord) + 1
  2667. write 3rd item of delimitedTextList to configFile starting at positionMarker
  2668. close access configFile
  2669.  
  2670.  
  2671. That's all folks...
  2672. peter
  2673. =========================================================================
  2674. Date:         Wed, 3 Aug 1994 16:55:48 -0800
  2675. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2676. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2677. From:         Tom Emerson <tree@BEDFORD.SYMANTEC.COM>
  2678. Subject:      Re: Sample Scripts
  2679.  
  2680. >
  2681. >Aren't there any scriptable apps out there that will find and
  2682. >replace?  That might be an easier and faster route.
  2683. >
  2684.  
  2685. BBEdit 3.0's search/replace facility is scriptable and should work in this case.
  2686.  
  2687.         -tre
  2688.  
  2689. ---
  2690. Tom Emerson                                              Software Engineer
  2691. Development Tools Group                               Symantec Corporation
  2692.                           tree@bedford.symantec.com
  2693.   "I dreamed I had to take a test, in a Dairy Queen, on another planet."
  2694. =========================================================================
  2695. Date:         Wed, 3 Aug 1994 14:51:23 -0800
  2696. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2697. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2698. From:         Matt Stevens <matt@TRIBE.TRIBE.COM>
  2699. Subject:      Error Number please...
  2700.  
  2701. Could somebody please email me the text explanation of error number -20013,
  2702. I'm out of the office until Monday so I can't look anything up.  Thanks!
  2703. --
  2704. matt
  2705. =========================================================================
  2706. Date:         Wed, 3 Aug 1994 18:02:13 -0400
  2707. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2708. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2709. From:         anthony brown <anbrown@HUSC9.HARVARD.EDU>
  2710. Subject:      fm pro printing
  2711.  
  2712. can anyone out there tell me what I am doing wrong?
  2713. I am trying to send fmpro a the print command from a script.
  2714.  
  2715. this is what I am using:
  2716.  
  2717. set temp to my currentRecordNumber as integer
  2718. tell application "filemaker pro"
  2719. print record temp
  2720. end tell
  2721.  
  2722. this goes to the print dialog box, and after I press the return button, I
  2723. get an error -1700 which is cant make some data into the expected type.
  2724.  
  2725. What am I doing wrong?
  2726. Anthony
  2727.  
  2728. *********************************************************************
  2729. *                                                                   *
  2730. *  Anthony Brown, Macintosh Programming Intern, Harvard Universtiy  *
  2731. *                                                                   *
  2732. *  "Classic Rock Music Stations,  The 70's are calling,             *
  2733. *   They want their 8 - Tracks back!"                               *
  2734. *                                                                   *
  2735. *   Dolphin's Rule!! Undefeated 17 - 0  The Perfect Team 1972-73    *
  2736. *                                                                   *
  2737. *********************************************************************
  2738. =========================================================================
  2739. Date:         Wed, 3 Aug 1994 16:39:56 -0700
  2740. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2741. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2742. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  2743. Subject:      Re: Some answers for [Re: More on Frontier & TCP/IP]
  2744.  
  2745. >>There are two better ways:
  2746. >>
  2747. >>First, in your loop, you could repeat while (connection status of (tcp
  2748. >>   status stream <yourstream> ) = Connected
  2749. >
  2750. >
  2751. >It seems to me that I played around with this, but in Frontier you
  2752. >don't get "Connected", but rather a binary value.  While I'm sure
  2753. >that value could be interpreted bit-wise to recover the necessary
  2754. >status info, I haven't had a chance to dig deeper.  (My memory
  2755. >of this is hazy now, but I *think* this was how it worked.)
  2756.  
  2757. If you capture one of these, and let us know what the binary type is (the
  2758. code in [....] after the binary in the Kind column of the table holding the
  2759. value) and perhaps its contents
  2760.     clipboard.putValue (string (theCellHoldingTheValue))
  2761. will copy it to the clipboard, we can probably figure out what it is.
  2762.  
  2763.    --John
  2764.  
  2765. --
  2766. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  2767. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  2768. =========================================================================
  2769. Date:         Wed, 3 Aug 1994 20:06:40 EDT
  2770. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2771. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2772. From:         Shaddar@AOL.COM
  2773. Subject:      Re: Rebuild Desktop -> Extensions Off
  2774.  
  2775. Meanwhile, back to the original topic of this thread, does anyone else know
  2776. of any way to restart with extensions off without moving them out of the
  2777. extensions folder or renaming it?  From what I've seen, restarting with
  2778. extensions off is different from emptying your extensions folder, it seems to
  2779. leave some vital processes running.
  2780.  
  2781. ~Shaddar
  2782. =========================================================================
  2783. Date:         Wed, 3 Aug 1994 17:48:32 -0700
  2784. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2785. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2786. From:         Michael Clasen <cmdesign@NETCOM.COM>
  2787. Subject:      Creating Drag and drop Applets
  2788.  
  2789. I have been trying to create a drag and drop applet which will mount a
  2790. volume, copy the folder dropped on the applet, and then unmount the volume.
  2791. >
  2792. Its not working very well. Any suggestions? I greatly appreciate the lists
  2793. help.
  2794. Problems with the duplicate folder command and then the put away disk, when
  2795. it works, puts away the volume too fast. I am trying to use copydoubler to
  2796. copy files faster and the app is left hanging after the process is started.
  2797. Thanks in advance.
  2798. >
  2799. >on open FolderName
  2800. >        set FolderToCopy to FolderName as string
  2801. >        copy (list disks) to DiskList
  2802. >
  2803. >        if DiskList does not contain "MacDrop" then
  2804. >                tell application "Finder"
  2805. >                        open alias "MACsmac:Aliases:MacDrop alias"
  2806. >                end tell
  2807. >                copy (list disks) to DiskList
  2808. >                if DiskList does not contain "MacDrop" then
  2809. >                        display dialog "That volume does not seem to be
  2810. >available right now!" & return & "Hmmmmm..."
  2811. >
  2812. >                else if DiskList contains "MacDrop" then
  2813. >                        tell application "Finder"
  2814. >                                duplicate folder FolderName to folder
  2815. >"MacDrop" of disk "CMd Portable 170"
  2816. >                                put away disk "MacDrop"
  2817. >                        end tell
  2818. >                end if
  2819. >        end if
  2820. >        beep
  2821. >end open
  2822. >
  2823.  
  2824. suggestions
  2825.  
  2826. -------
  2827. Michael A. Clasen   |  Voice - 1-415-703-8736
  2828. Clement Mok Design  |  Fax   - 1-415-703-9901
  2829. 600 Townsend St.    |  Internet: cmdesign@netcom.com
  2830. -------------------------------------------------
  2831. Play for me, oh sweetest lute and lift away all strife
  2832. Ply for me to celebrate the joyousness of life
  2833. MP-C --1994
  2834. =========================================================================
  2835. Date:         Wed, 3 Aug 1994 18:05:31 -0700
  2836. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2837. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2838. From:         Dennis Birch <fja04@HALCYON.COM>
  2839. Subject:      Where to get Scriptable Finder
  2840.  
  2841. I've seen many references to the Scriptable Finder on this list, some of
  2842. which have stated that it is readily available. Where might that be? I'm
  2843. ready to try some things that require scripting the Finder, so I'd like to
  2844. get my hands on it. What other System requirements are there for working
  2845. with it?
  2846. =========================================================================
  2847. Date:         Wed, 3 Aug 1994 18:05:34 -0700
  2848. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2849. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2850. From:         Dennis Birch <fja04@HALCYON.COM>
  2851. Subject:      gaea ftp error
  2852.  
  2853. I have a problem logging onto the gaea ftp server, and I'm wondering if
  2854. anyone can give me a clue as to what it is. Whenever I use Fetch to attempt
  2855. a logon, I get an error dialog that tells me: "Server response: Can't
  2856. create data socket (129.237.140.40,20): Interrupted system call." When I
  2857. dismiss the dialog, I can't get any further.
  2858.  
  2859. This may be related to having upgraded our office to a 56K line, because I
  2860. know I have logged onto gaea successfully from home via PPP access.
  2861.  
  2862. So, any clues?
  2863. =========================================================================
  2864. Date:         Wed, 3 Aug 1994 19:19:40 -0700
  2865. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2866. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2867. From:         David Ray <daver@NETCOM.COM>
  2868. Subject:      Re: gaea ftp error
  2869.  
  2870. >I have a problem logging onto the gaea ftp server, and I'm wondering if
  2871. >anyone can give me a clue as to what it is. Whenever I use Fetch to attempt
  2872. >a logon, I get an error dialog that tells me: "Server response: Can't
  2873. >create data socket (129.237.140.40,20): Interrupted system call." When I
  2874. >dismiss the dialog, I can't get any further.
  2875.  
  2876. I got the same error this morning, trying to ftp from a unix shell.
  2877.  
  2878. Definitely a problem with the ftp server at gaea.
  2879.  
  2880. -Dave
  2881.  
  2882. ------------------------------------------------------------------------------
  2883. David Ray                Dream Designs          Music Composition
  2884. daver@netcom.com         PO Box 5631            Interactive Multimedia
  2885. 510-527-9010             Berkeley CA 94705      Virtual Worlds
  2886. =========================================================================
  2887. Date:         Wed, 3 Aug 1994 22:12:32 -0500
  2888. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2889. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2890. From:         Fred Terry <pfterry@LKS.CSI.COM>
  2891. Subject:      Re: gaea ftp error
  2892. In-Reply-To:  Your message of "Wed, 03 Aug 94 18:05:34 PDT"
  2893.  
  2894. >I have a problem logging onto the gaea ftp server, and I'm wondering if
  2895. >anyone can give me a clue as to what it is. Whenever I use Fetch to attempt
  2896. >a logon, I get an error dialog that tells me: "Server response: Can't
  2897. >create data socket (129.237.140.40,20): Interrupted system call." When I
  2898. >dismiss the dialog, I can't get any further.
  2899. >
  2900. >This may be related to having upgraded our office to a 56K line, because I
  2901. >know I have logged onto gaea successfully from home via PPP access.
  2902.  
  2903. No, the problem is gaea. I haven't figured out what causes this yet. I
  2904. will let the sys admin know there's a problem.
  2905.  
  2906. pf
  2907.  
  2908. BTW, did you try using Anarchie or the ftp option in telnet. I saw
  2909. a message earlier today, but when I attempted to log in, I didn't
  2910. have any problems.
  2911. =========================================================================
  2912. Date:         Wed, 3 Aug 1994 20:47:49 -0700
  2913. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2914. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2915. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  2916. Subject:      Re: Rebuild Desktop -> Extensions Off
  2917.  
  2918. >Meanwhile, back to the original topic of this thread, does anyone else know
  2919. >of any way to restart with extensions off without moving them out of the
  2920. >extensions folder or renaming it?  From what I've seen, restarting with
  2921. >extensions off is different from emptying your extensions folder, it seems to
  2922. >leave some vital processes running.
  2923.  
  2924. There are extensions in more places than the Extensions folder.  Loose in
  2925. the System folder; in the Control Panels folder (not sure about Apple Menu
  2926. Items).  There are also extension-like-things which are immune to the
  2927. shift-key startup, such as the Enabler needed by your machine...they go
  2928. away if you empty the Extensions folder (or rename it).  And don't forget
  2929. to empty the Startup Items folder, unless you have something in there you
  2930. want to have start up.
  2931.  
  2932. So it is no easy task to manually produce the shift-key-startup effect.
  2933.  
  2934.    --John
  2935.  
  2936. --
  2937. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  2938. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  2939. =========================================================================
  2940. Date:         Wed, 3 Aug 1994 23:20:05 -0700
  2941. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2942. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2943. From:         Jon Pugh <jonpugh@NETCOM.COM>
  2944. Subject:      Re: My folder and file processor
  2945.  
  2946. >From:    Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
  2947. >
  2948. >As Jon Pugh, the author of Jon's Commands, has confirmed, the "walk
  2949. >folders" command does not work in all instances.  I started out trying to
  2950. >use his command for my MacPGP scripts. As I remember, with the "walk
  2951. >folder" command you cannot access a global variable from within script you
  2952. >are processing the files or folders with.
  2953.  
  2954. While there's some truth to the statement "the 'walk folders' command does
  2955. not work in all instances , I don't really use globals, so I haven't
  2956. bothered figuring out how to do it.  My common solution is to pass
  2957. variables into the script I before I feed it to "walk folders", like so:
  2958.  
  2959. on script foo
  2960.   prop bar : ""
  2961.   on open
  2962.     -- ...
  2963.     return bar
  2964.   end
  2965. end
  2966.  
  2967. set s to foo                               -- copy the script into a variable
  2968. set foo's bar to gonzo                     -- set the property to whatever
  2969. set gonzo to walk folders with script foo  -- use the script object
  2970. -- now gonzo contains bar
  2971.  
  2972. There are probably a bunch of ways to hook these scripts together.  I'm
  2973. sure you can also string the scripts together by using "parent : me"
  2974. somewhere in there, but I'm not sure of the syntax and don't have the time
  2975. to pay around with it right now.  I'm sure someone else can fill in.  It
  2976. should be documented in the Language Guide.
  2977.  
  2978. Jon
  2979. =========================================================================
  2980. Date:         Thu, 4 Aug 1994 12:28:28 EETDST
  2981. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2982. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2983. From:         Tero Loimuneva <Tero.Loimuneva@TH.TELE.FI>
  2984. Subject:      Sender's address
  2985. In-Reply-To:  <9408040821.AA09171@smtp.tele.fi>; from "Automatic digest
  2986.               processor" at Aug 4, 94 12:00 am
  2987.  
  2988. How do I get the address of the application who sent the event to my script?
  2989.  
  2990. I know "return" will return a AE reply to the sender, but how can I send
  2991. other events to the client program afterwards? I can't find any mention
  2992. about it... not in FAQ, not in a couple of months reading this listserv...
  2993.  
  2994. Thanks in advance - I hope my question is not too trivial...otherwise
  2995. I must be blind.
  2996.  
  2997.         tloimune@denethor.th.tele.fi
  2998.  
  2999.         - Loimu
  3000. =========================================================================
  3001. Date:         Thu, 4 Aug 1994 08:30:51 -0500
  3002. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3003. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3004. From:         Chris Dowling <cdowling@FACSTAFF.WISC.EDU>
  3005. Subject:      Grabbing hardware info?
  3006.  
  3007. Is there an AS command or osax that can grab hardware information, e.g.,
  3008. ROM version or serial # of internal hard disk?  I want to  use this info as
  3009. a variable then copy software to a particular machine or class of machine.
  3010. Chris
  3011. ~~~~
  3012. Chris Dowling, Manager, SOE Computer Lab,
  3013. 1025 W. Johnson St., Madison, WI  53706, (608) 263-4339
  3014. cdowling@facstaff.wisc.edu
  3015. ~~~~
  3016. =========================================================================
  3017. Date:         Thu, 4 Aug 1994 09:38:21 -0400
  3018. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3019. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3020. From:         tom price <price@LL.MIT.EDU>
  3021. Subject:      Need General Info
  3022.  
  3023. I have been lurking for quite a while and just got around to really beginning
  3024. to script with a copy of Frontier v2.0 that I have had around.
  3025.  
  3026. First, where can I ftp the public domain software or get a list of available
  3027. files?  I made a request to the listserver for frontier index and it told me it
  3028. wasn't available.  I suspect that I have just lost track of new directories.
  3029.  
  3030. Second, I wanted to be able to use Frontier to script the application
  3031. KaleidaGraph which is IAC aware.  In reading the manual I discovered that I
  3032. need an install script for frontier that will give me the hooks to the iac
  3033. commands in the application.  Is such an install script available? Does version
  3034. 3 of Frontier require these same install scripts?
  3035.  
  3036. Thanks for any help
  3037.  
  3038. Tom Price
  3039. MIT Lincoln Lab
  3040. price@ll.mit.edu
  3041. =========================================================================
  3042. Date:         Thu, 4 Aug 1994 09:57:43 -0500
  3043. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3044. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3045. From:         David Myers <myers@ACEC.COM>
  3046. Subject:      Re: Some answers for [Re: More on Frontier & TCP/IP]
  3047.  
  3048. >>>There are two better ways:
  3049. >>>
  3050. >>>First, in your loop, you could repeat while (connection status of (tcp
  3051. >>>   status stream <yourstream> ) = Connected
  3052. >>
  3053. >>
  3054. >>It seems to me that I played around with this, but in Frontier you
  3055. >>don't get "Connected", but rather a binary value.  While I'm sure
  3056. >>that value could be interpreted bit-wise to recover the necessary
  3057. >>status info, I haven't had a chance to dig deeper.  (My memory
  3058. >>of this is hazy now, but I *think* this was how it worked.)
  3059. >
  3060. >If you capture one of these, and let us know what the binary type is (the
  3061. >code in [....] after the binary in the Kind column of the table holding the
  3062. >value) and perhaps its contents
  3063. >    clipboard.putValue (string (theCellHoldingTheValue))
  3064. >will copy it to the clipboard, we can probably figure out what it is.
  3065. >
  3066. >   --John
  3067.  
  3068.  
  3069. John:
  3070.  
  3071. I didn't know there were binary "types".  Is there any information on
  3072. what each type is?  Let me verify that this was how the osax actually worked,
  3073. and then I would be curious to see how you deconstruct it.  Thanks.
  3074.  
  3075. -David.
  3076.  
  3077.  
  3078. ____________________________________________________
  3079.  
  3080. David C. Myers
  3081. myers@acec.com
  3082. =========================================================================
  3083. Date:         Thu, 4 Aug 1994 10:11:05 -0800
  3084. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3085. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3086. From:         Tom Emerson <tree@BEDFORD.SYMANTEC.COM>
  3087. Subject:      Re: Need General Info
  3088.  
  3089. At  9:38 8/4/94 -0400, tom price wrote:
  3090. [snip]
  3091. >Second, I wanted to be able to use Frontier to script the application
  3092. >KaleidaGraph which is IAC aware.  In reading the manual I discovered that I
  3093. >need an install script for frontier that will give me the hooks to the iac
  3094. >commands in the application.  Is such an install script available? Does version
  3095. >3 of Frontier require these same install scripts?
  3096.  
  3097. The KaleidaGraph installation may contain an installer file for Frontier
  3098. that will add the appropriate verbs to the table, or such a beast may be
  3099. available from the company - call their tech support if you can't find it
  3100. in your installation.
  3101.  
  3102. Frontier 3.0 will require the same thing. Now, what we really need is a
  3103. hack to take an 'aete' and munge it into a set of verbs.
  3104.  
  3105.         -tre
  3106.  
  3107. ---
  3108. Tom Emerson                                              Software Engineer
  3109. Development Tools Group                               Symantec Corporation
  3110.                           tree@bedford.symantec.com
  3111.   "I dreamed I had to take a test, in a Dairy Queen, on another planet."
  3112. =========================================================================
  3113. Date:         Thu, 4 Aug 1994 11:11:19 EDT
  3114. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3115. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3116. From:         Israel Alvarez <Montressor@AOL.COM>
  3117. Subject:      FaceSpan and AppleScript Developer's Kit 1.1
  3118.  
  3119. I'm curious - am I just one of the few who have the AppleScript Developer's
  3120. Kit? I just bought v1.1 at the MacWorld show, and along with some great docs,
  3121. a scriptable finder, and a CD of examples and info, it has a killer
  3122. application called FaceSpan. FaceSpan is an interface builder for
  3123. AppleScript. In practice, this means it's like HyperCard for AppleScript. It
  3124. gives you easy access to all of the Mac's interface elemsnts, including lists
  3125. and popup menus. This is one of the coolest things I've seen in a long time.
  3126. Best of all, the Dev Kit includes a license for redistribution of the
  3127. FaceSpan Extension, which lets you create little standalones that can be run
  3128. by anyone with the Extension installed. Overhead is about 30-40k. Otherwise,
  3129. you can create full standalone apps, though the apps are significantly larger
  3130. (in a test, a mini-app was 32k, while the full app was 284k). Full apps only
  3131. require AppleScript installed to run.
  3132.  
  3133. At any rate, I'm curious if anyone else has heard of this app, or has the
  3134. developer's kit. It cost $150 from APDA, and in my mind, it's well worth it.
  3135.  
  3136. Mont
  3137. =========================================================================
  3138. Date:         Thu, 4 Aug 1994 11:26:55 -0400
  3139. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3140. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3141. From:         Joseph Block <jpb@GATE.NET>
  3142. Subject:      Resource Editing osax
  3143.  
  3144. Does anyone know of an osax that will allow me to manipulate
  3145. resources?  I need to be able to create an arbitrary type & id.
  3146.  
  3147. I want to write a drop script to automatically add Fetch keys to
  3148. graphics files, and need to manipulate the keyword and description
  3149. resources.
  3150.  
  3151. Thanks,
  3152.  
  3153. jpb@gate.net
  3154. =========================================================================
  3155. Date:         Thu, 4 Aug 1994 09:02:15 -0700
  3156. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3157. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3158. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  3159. Subject:      Re: Sender's address
  3160.  
  3161. >How do I get the address of the application who sent the event to my script?
  3162. >
  3163. >I know "return" will return a AE reply to the sender, but how can I send
  3164. >other events to the client program afterwards? I can't find any mention
  3165. >about it... not in FAQ, not in a couple of months reading this listserv...
  3166.  
  3167. I can't think of a way to do this.  I'll be happy to be educated.  In real
  3168. code, it is trivial (there is an attribute one can extract from either the
  3169. incoming event or the reply, in an AE Handler function which contains what
  3170. is needed).  But that's not accessible to a script.  Nor does it seem
  3171. possible to pass it along to an osax.  Nor is there AppleScript syntax to
  3172. do the job of "telling" the decided-at-runtime application anything.
  3173.  
  3174. I'd suggest an alternate approach:  a receiving script application specific
  3175. to a given sender application.
  3176.  
  3177. Or switch to Frontier, where a handler for a custom event can dig the
  3178. address attribute out of the incoming event, and keep it around for later
  3179. use.
  3180.  
  3181.    --John (who does tech support for UserLand, but speaks for himself above)
  3182.  
  3183. --
  3184. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  3185. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  3186. =========================================================================
  3187. Date:         Thu, 4 Aug 1994 09:02:18 -0700
  3188. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3189. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3190. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  3191. Subject:      Re: Grabbing hardware info?
  3192.  
  3193. >Is there an AS command or osax that can grab hardware information, e.g.,
  3194. >ROM version or serial # of internal hard disk?  I want to  use this info as
  3195. >a variable then copy software to a particular machine or class of machine.
  3196. >Chris
  3197.  
  3198. Anything which can be learned using the Gestalt system call (which doesn't
  3199. include a serial # of an internal disk, so far as I know) can be done in
  3200. AppleScript, either with a suitable Scripting Addition, or with a command
  3201. built into the Scriptable Finder.
  3202.  
  3203. In the Jons Commands osax (a good choice) the argument-less command
  3204.  
  3205. machine environment
  3206.  
  3207. returns a likely collection of stuff:
  3208.  
  3209. {machine type:"Power Macintosh 8100/80",
  3210. CPU type:"68020",
  3211. System version:7.12,
  3212. FPU:false,
  3213. Color Quickdraw:true,
  3214. Data Access Manager:false,
  3215. software power off:true,
  3216. logical RAM:21225472,
  3217. physical RAM:16777216,
  3218. active scripts:1,
  3219. AppleTalk version:58,
  3220. keyboard:"Extended ADB Keyboard",
  3221. virtual memory:true}
  3222.  
  3223. You can also call any particular Gestalt "selector", provided you know what
  3224. to do with the result:
  3225.  
  3226. machine environment "ascr"
  3227.  
  3228. returns 3 on my machine:  a couple of bit flags describing AppleScript
  3229. features available.
  3230.  
  3231. With Scriptable Finder, the
  3232.  
  3233. [get] computer
  3234.  
  3235. command does about the same thing...bit testing is provided too.
  3236.  
  3237.    --John
  3238.  
  3239. --
  3240. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  3241. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  3242. =========================================================================
  3243. Date:         Thu, 4 Aug 1994 09:09:56 -0700
  3244. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3245. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3246. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  3247. Subject:      Re: Need General Info
  3248.  
  3249. >I have been lurking for quite a while and just got around to really beginning
  3250. >to script with a copy of Frontier v2.0 that I have had around.
  3251. >
  3252. >First, where can I ftp the public domain software or get a list of available
  3253. >files?  I made a request to the listserver for frontier index and it told me it
  3254. >wasn't available.  I suspect that I have just lost track of new directories.
  3255.  
  3256. The ftp site is
  3257.  
  3258. gaea.kgs.ukans.edu
  3259.  
  3260. in the directory /frontier
  3261.  
  3262.  
  3263. >Second, I wanted to be able to use Frontier to script the application
  3264. >KaleidaGraph which is IAC aware.  In reading the manual I discovered that I
  3265. >need an install script for frontier that will give me the hooks to the iac
  3266. >commands in the application.  Is such an install script available? Does version
  3267. >3 of Frontier require these same install scripts?
  3268.  
  3269. I don't know of an install file for KaleidaGraph...that doesn't mean there
  3270. isn't one around.  Frontier can help you build one, if KaleidaGraph is
  3271. "scriptable" in Apple's limited meaning of the term (it has an 'aete'
  3272. resource).  The Commercial Developers Suite has a parser which reads the
  3273. 'aete' and builds the beginning of the glue table (same table as is
  3274. installed by an install file) for you.
  3275.  
  3276. Then, it is usually necessary to go back and tune that up, to reflect the
  3277. reality of the application's supported events, as opposed to the story told
  3278. in the 'aete'.  Disturbingly often, the 'aete' representation describes
  3279. events different from what the application provides.  Also, you may want to
  3280. write custom glue which hides details.
  3281.  
  3282. Frontier 3.0 does this job much better than 2.0 did, and adds many other
  3283. enhancements.  I've sent you private mail about that, to avoid a
  3284. "commercial" here.
  3285.  
  3286.    --John
  3287.  
  3288.  
  3289.  
  3290. --John W. Baxter    Port Ludlow, WA USA   jwbaxter@pt.olympus.net
  3291.   UserLand Software support
  3292. =========================================================================
  3293. Date:         Thu, 4 Aug 1994 09:12:31 -0700
  3294. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3295. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3296. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  3297. Subject:      Re: Need General Info
  3298.  
  3299. >At  9:38 8/4/94 -0400, tom price wrote:
  3300. >[snip]
  3301. >>Second, I wanted to be able to use Frontier to script the application
  3302. >>KaleidaGraph which is IAC aware.  In reading the manual I discovered that I
  3303. >>need an install script for frontier that will give me the hooks to the iac
  3304. >>commands in the application.  Is such an install script available? Does
  3305. >>version
  3306. >>3 of Frontier require these same install scripts?
  3307. >
  3308. >The KaleidaGraph installation may contain an installer file for Frontier
  3309. >that will add the appropriate verbs to the table, or such a beast may be
  3310. >available from the company - call their tech support if you can't find it
  3311. >in your installation.
  3312. >
  3313. >Frontier 3.0 will require the same thing. Now, what we really need is a
  3314. >hack to take an 'aete' and munge it into a set of verbs.
  3315.  
  3316. It's there, supplied with Frontier 3.0 (an earlier, less good, version came
  3317. with Frontier 2.0).  It's the Commercial Developer's Suite (on Disk 2).
  3318.  
  3319. The record and list handling and optional handler parameters added to the
  3320. UserTalk language in 3.0 made this much easier to do, and the 'aete' parser
  3321. was extensively retooled as a part of that.
  3322.  
  3323.    --John
  3324.  
  3325. --
  3326. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  3327. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  3328. =========================================================================
  3329. Date:         Thu, 4 Aug 1994 09:16:41 -0700
  3330. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3331. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3332. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  3333. Subject:      Re: FaceSpan and AppleScript Developer's Kit 1.1
  3334.  
  3335. >I'm curious - am I just one of the few who have the AppleScript Developer's
  3336. >Kit? I just bought v1.1 at the MacWorld show, and along with some great docs,
  3337. >a scriptable finder, and a CD of examples and info, it has a killer
  3338. >application called FaceSpan. FaceSpan is an interface builder for
  3339. >AppleScript. In practice, this means it's like HyperCard for AppleScript. It
  3340. >gives you easy access to all of the Mac's interface elemsnts, including lists
  3341. >and popup menus. This is one of the coolest things I've seen in a long time.
  3342. >Best of all, the Dev Kit includes a license for redistribution of the
  3343. >FaceSpan Extension, which lets you create little standalones that can be run
  3344. >by anyone with the Extension installed. Overhead is about 30-40k. Otherwise,
  3345. >you can create full standalone apps, though the apps are significantly larger
  3346. >(in a test, a mini-app was 32k, while the full app was 284k). Full apps only
  3347. >require AppleScript installed to run.
  3348. >
  3349. >At any rate, I'm curious if anyone else has heard of this app, or has the
  3350. >developer's kit. It cost $150 from APDA, and in my mind, it's well worth it.
  3351.  
  3352. Many of us on the list (including me) have FaceSpan (actually, I have it
  3353. under its first public name:  FrontMost).  I anxiously await the next major
  3354. version upgrade, but it is very nice as is.  It is also available in the
  3355. AppleScript Scripter's Kit, Apple's retail product.
  3356.  
  3357. One problem with the current FaceSpan:  there is a large memory leak every
  3358. time a FaceSpan freestanding application starts up and is quit.  (200K or
  3359. so).
  3360.  
  3361. There is a much smaller leak each time one of the mini-apps (the ones
  3362. needing the runtime extension) starts and quits.
  3363.  
  3364. The workaround is:  if it hurts, don't do it.  That is...don't plan on
  3365. starting one of these things up over and over...start it and leave it
  3366. running.
  3367.  
  3368.    --John
  3369.  
  3370. --
  3371. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  3372. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  3373. =========================================================================
  3374. Date:         Thu, 4 Aug 1994 09:22:50 -0800
  3375. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3376. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3377. From:         "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
  3378. Subject:      Re: FaceSpan and AppleScript Developer's Kit 1.1
  3379.  
  3380. At 11:11 8/4/94 -0400, Israel Alvarez wrote:
  3381. >I'm curious - am I just one of the few who have the AppleScript Developer's
  3382. >Kit?
  3383.  
  3384. Yes, though by the end of the day the number should be increased by one (we
  3385. placed the PO with Apple on thursday, and I've been sitting on pins and
  3386. needles waiting for the damned package).
  3387.  
  3388. >At any rate, I'm curious if anyone else has heard of this app, or has the
  3389. >developer's kit. It cost $150 from APDA, and in my mind, it's well worth it.
  3390.  
  3391. Heard of it, used it to justify the spending of $199 (the price has gone up
  3392. :) ), rather than the $30 a book and AS 1.1 would cost.
  3393.  
  3394. I think the reason you might find relatively few people have it is, well,
  3395. because it costs a lot.  Unless you're going to be doing something rather
  3396. fancy with AppleScript (and really, there's so few people doing *anything*
  3397. with AS at the moment, that it's a fairly small number that does something
  3398. really cool :) ), and can find a kind person in your company who's willing
  3399. to buy it for you, most people probably will choose not to get it.
  3400.  
  3401. Then again, I may be showing my lack of familiarity with the niche AS has
  3402. found -- are most people using it for private applications, or business
  3403. applications? I'm using it for both, though most of the time is spent
  3404. hacking it for my private pleasure (though it helps my company) ...
  3405.  
  3406. -roy
  3407. =========================================================================
  3408. Date:         Thu, 4 Aug 1994 10:19:32 -0700
  3409. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3410. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3411. From:         Dennis Birch <fja04@HALCYON.COM>
  3412. Subject:      Re: gaea ftp error
  3413.  
  3414. >>I have a problem logging onto the gaea ftp server, and I'm wondering if
  3415. >>anyone can give me a clue as to what it is. Whenever I use Fetch to attempt
  3416. >>a logon, I get an error dialog that tells me: "Server response: Can't
  3417. >>create data socket (129.237.140.40,20): Interrupted system call." When I
  3418. >>dismiss the dialog, I can't get any further.
  3419.  
  3420. >No, the problem is gaea. I haven't figured out what causes this yet. I
  3421. >will let the sys admin know there's a problem.
  3422. >
  3423. >pf
  3424. >
  3425. >BTW, did you try using Anarchie or the ftp option in telnet. I saw
  3426. >a message earlier today, but when I attempted to log in, I didn't
  3427. >have any problems.
  3428.  
  3429. I tried Anarchie without luck, and I still haven't quite figured out how to
  3430. do an ftp session with Telnet. I also tried from home last night and
  3431. discovered that I couldn't do it via PPP now, either. I hope you can get
  3432. through to the administrator!
  3433.  
  3434. -- Dennis
  3435. =========================================================================
  3436. Date:         Thu, 4 Aug 1994 11:19:14 -0700
  3437. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3438. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3439. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  3440. Subject:      Re: FaceSpan and AppleScript Developer's Kit 1.1
  3441.  
  3442. At 09:22 8/4/94 -0800, Roy S. Rapoport wrote:
  3443. >Then again, I may be showing my lack of familiarity with the niche AS has
  3444. >found -- are most people using it for private applications, or business
  3445. >applications? I'm using it for both, though most of the time is spent
  3446. >hacking it for my private pleasure (though it helps my company) ...
  3447.  
  3448. Most of the "heavy" uses of scripting (whether AppleScript or Frontier or
  3449. ...) so far seem to be hidden inside organizations.  Certainly the
  3450. scripting (AS or Frontier) of QuarkXPress are in-house.  Entire newspaper
  3451. classified sections are being prepared that way, large catalogs, telephone
  3452. yellow pages, etc.  Not the sort of script that will find its way onto
  3453. gaea, in general.)  [I only hear about some of the Frontier uses like this
  3454. (the ones which at some point need technical support), not the AppleScript
  3455. ones, so I may be wrong about the mix, which I think still is more Frontier
  3456. than AS: these are BIG script collections, and debugging is nice, and
  3457. Frontier was out first.]
  3458.  
  3459.    --John (speaking for himself)
  3460.  
  3461. --John W. Baxter    Port Ludlow, WA USA   jwbaxter@pt.olympus.net
  3462.   UserLand Software support
  3463. =========================================================================
  3464. Date:         Thu, 4 Aug 1994 15:00:19 EDT
  3465. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3466. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3467. From:         Danny Goodman <DGoodman@AOL.COM>
  3468. Subject:      Re: Value Lists in FMPro via AS
  3469.  
  3470. >Does anyone out there know how to access the value list of a FMPro field
  3471. >using AppleScript?
  3472.  
  3473. If I understand the question correctly, you want to get the cellvalue
  3474. property of a particular cell (for a single record) or for a field (for that
  3475. field in all records).  Here are a couple of examples that return list
  3476. values:
  3477.  
  3478.   cellValue of every Cell of Record 1 -- list
  3479.  
  3480.   cellValue of Cell 1 of every Record
  3481.  
  3482. Danny Goodman
  3483. =========================================================================
  3484. Date:         Thu, 4 Aug 1994 15:03:03 EDT
  3485. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3486. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3487. From:         Danny Goodman <DGoodman@AOL.COM>
  3488. Subject:      Re: What is FrontMost
  3489.  
  3490. >And where can I get it?
  3491.  
  3492. Frontmost was the original name for FaceSpan, a user interface builder for
  3493. AppleScript scripts.  It's tres cool, and is bundled with the AppleScript
  3494. Scripters Kit (retail product from Apple) or the AppleScript Developers Kit
  3495. (from APDA only).
  3496.  
  3497. Danny Goodman
  3498. =========================================================================
  3499. Date:         Thu, 4 Aug 1994 15:07:20 EDT
  3500. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3501. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3502. From:         Danny Goodman <DGoodman@AOL.COM>
  3503. Subject:      Re: Where to get Scriptable Finder
  3504.  
  3505. >I've seen many references to the Scriptable Finder on this list, some of
  3506. >which have stated that it is readily available. Where might that be?
  3507.  
  3508. "Readily available" might be stretching it.  As far as I know, it's available
  3509. only on the AppleScript Developer Kit CD from APDA.  It will, however, be
  3510. bundled with System 7.5 for all.
  3511.  
  3512. Danny Goodman
  3513. =========================================================================
  3514. Date:         Thu, 4 Aug 1994 15:18:29 EDT
  3515. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3516. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3517. From:         Shaddar@AOL.COM
  3518. Subject:      Re: Where to get Scriptable Finder
  3519.  
  3520. >I've seen many references to the Scriptable Finder on this list, some of
  3521. >which have stated that it is readily available. Where might that be? I'm
  3522. >ready to try some things that require scripting the Finder, so I'd like to
  3523. >get my hands on it. What other System requirements are there for working
  3524. >with it?
  3525.  
  3526. I believe you can buy it from APDA, but if you're willing to wait a month,
  3527. System 7.5 will include it and you'll probably end up buying that or getting
  3528. it for free anyway.
  3529.  
  3530. ~Shaddar
  3531. =========================================================================
  3532. Date:         Thu, 4 Aug 1994 15:21:46 -0400
  3533. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3534. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3535. From:         Lee Hoong <lhoong@EMORYU1.CC.EMORY.EDU>
  3536. Subject:      Re: FaceSpan and AppleScript Developer's Kit 1.1
  3537.  
  3538. >Many of us on the list (including me) have FaceSpan (actually, I have it
  3539. >under its first public name:  FrontMost).  I anxiously await the next major
  3540. >version upgrade, but it is very nice as is.
  3541.  
  3542. I too obtained the Interface builder in its Frontmost incarnation as part
  3543. of the AS Scripter's Kit.  Recent communication from Uncle Dave of SDU (the
  3544. developers of FaceSpan) indicated that the upgrade should be available
  3545. "soon."  I've heard rumors that it is currently in beta; anyone can confirm
  3546. this?
  3547.  
  3548. >One problem with the current FaceSpan:  there is a large memory leak every
  3549. >time a FaceSpan freestanding application starts up and is quit.  (200K or
  3550. >so).
  3551. >
  3552. >There is a much smaller leak each time one of the mini-apps (the ones
  3553. >needing the runtime extension) starts and quits.
  3554.  
  3555. Yes, the memory leak was a major bug, but it is not the only one--other
  3556. bugs involve the use of windoids, metas in lists, etc.  The initial version
  3557. was very buggy indeed!
  3558.  
  3559. Lee.
  3560.  
  3561.  
  3562.  
  3563. Lee K. Hoong
  3564. Emory University
  3565. Atlanta, GA 30322
  3566. Internet: lhoong@unix.cc.emory.edu
  3567. AOL: LHOONG
  3568. ==========================
  3569. Opinions and comments expressed are mine; I do not represent Emory
  3570. University.
  3571. =========================================================================
  3572. Date:         Thu, 4 Aug 1994 11:55:30 -0800
  3573. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3574. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3575. From:         Jamie Lawrence <jamiel@SYBASE.COM>
  3576. Subject:      Finding which OSAXen are used in a script(Was: Re: How does AS
  3577.               know which osax to use?)
  3578.  
  3579. >the other machines, but I'd love to find a way to find which osaxen a
  3580. >script is using.
  3581.  
  3582. I don't know that there is a way to do that, but one trick
  3583. I have found useful in fuguring it out is to change the Applescript
  3584. formatting in the script editor to either color or change the font
  3585. of the appropriate terms. (I don't have AS here, and can't remember
  3586. the exact method of doing this, so futz around some) Only a partial
  3587. solution, but it has helped me... YMMV
  3588.  
  3589.  
  3590. -j
  3591. --
  3592. "Blah Blah Blah"
  3593. ___________________________________________________________________
  3594. Jamie Lawrence                                  <jamiel@sybase.com>
  3595. =========================================================================
  3596. Date:         Thu, 4 Aug 1994 15:58:23 U
  3597. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3598. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3599. From:         "Fletcher, Chuck" <fletcher_chuck@JPMORGAN.COM>
  3600. Subject:      A nice big fat project
  3601.  
  3602. Hi,
  3603.  
  3604. My name is Chuck Fletcher. As a manager of about 70 800's and 8100's with
  3605. rollouts of new software and services every other day, I have been thinking
  3606. alot about developing an software management system based on applescript and
  3607. filemaker pro. The basic idea is to simulate gracelan(too expensive), and add
  3608. some other features too.
  3609.  
  3610. Goals
  3611. 1. remote inventory of mac hardware, software and services(tcpip addresses,
  3612. mainframe userids, etc.)
  3613. 2. remote installs and upgrades
  3614. 3. filemaker pro log of all activity
  3615. 4. remote shutdown of all macs at a certain time, with auto saving features. ie
  3616. untitled files put in a folder called "saved files" on the desktop.
  3617. 5. remote automatic maintance(ie remote maintaince-rebuilding the desktop and
  3618. running nortons once a month)
  3619. 6. Frontmost interface for selecting which macs and times of exection.
  3620. 7. Release as a public domain application and remote agent.
  3621.  
  3622. If anyone would like to help, please email me.
  3623.  
  3624. chuck_fletcher@jpmorgan.com
  3625. =========================================================================
  3626. Date:         Thu, 4 Aug 1994 13:33:05 -0700
  3627. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3628. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3629. From:         "Patrick S. Kammermeyer" <pkammer@EIS.CALSTATE.EDU>
  3630. Subject:      Re: A nice big fat project
  3631. In-Reply-To:  <199408042001.NAA20393@eis.calstate.edu>
  3632.  
  3633. Have you seen Radar 4.0? It does most of what you are talking about for
  3634. less money than GraceLan.
  3635.  
  3636. On Thu, 4 Aug 1994, Fletcher, Chuck wrote:
  3637.  
  3638. > Hi,
  3639. >
  3640. > My name is Chuck Fletcher. As a manager of about 70 800's and 8100's with
  3641. > rollouts of new software and services every other day, I have been thinking
  3642. > alot about developing an software management system based on applescript and
  3643. > filemaker pro. The basic idea is to simulate gracelan(too expensive), and add
  3644. > some other features too.
  3645. >
  3646. > Goals
  3647. > 1. remote inventory of mac hardware, software and services(tcpip addresses,
  3648. > mainframe userids, etc.)
  3649. > 2. remote installs and upgrades
  3650. > 3. filemaker pro log of all activity
  3651. > 4. remote shutdown of all macs at a certain time, with auto saving features.
  3652.  ie
  3653. > untitled files put in a folder called "saved files" on the desktop.
  3654. > 5. remote automatic maintance(ie remote maintaince-rebuilding the desktop and
  3655. > running nortons once a month)
  3656. > 6. Frontmost interface for selecting which macs and times of exection.
  3657. > 7. Release as a public domain application and remote agent.
  3658. >
  3659. > If anyone would like to help, please email me.
  3660. >
  3661. > chuck_fletcher@jpmorgan.com
  3662. >
  3663. =========================================================================
  3664. Date:         Thu, 4 Aug 1994 15:06:00 +0100
  3665. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3666. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3667. From:         Judith =?iso-8859-1?Q?Kert=E9sz?= SUCHARD <suchard@CNAM.FR>
  3668. Subject:      Re: Sender's address
  3669.  
  3670. >How do I get the address of the application who sent the event to my script=
  3671. ?
  3672.  
  3673. in hyperCard (even 2.1) there is a message (hypertalk):
  3674. appleEvent theClass, theId, theSender
  3675.  
  3676. on appleEvent cl,id,Sender
  3677.  answer Sender
  3678. -- of if Sender is -- then --
  3679. end appleEvent
  3680.  
  3681. In appleScript, I do not know, but someware should be there too, because
  3682. it is in the appleEvent received. But I think you have to ask for it, becaus=
  3683. e,
  3684. it is retained by the appleScript component.
  3685.  
  3686. Chaleureusement,
  3687.  
  3688. Judith
  3689. _________________________________________
  3690. Judith Kert=E9sz Suchard                  suchard@cnam.cnam.fr
  3691. C.N.A.M. Labo Informatique             AppleLink: cnam
  3692. 25, rue Mont Cenis                         Tel:(1) 40 27 25 57
  3693. 75018 Paris, France                     Fax: 40 27 27 72
  3694. _________________________________________
  3695. "La simplicit=E9, c'est le fruit d'un long effort"
  3696. =========================================================================
  3697. Date:         Thu, 4 Aug 1994 15:41:56 -0500
  3698. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3699. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3700. From:         Fred Terry <pfterry@LKS.CSI.COM>
  3701. Subject:      Re: A nice big fat project
  3702. In-Reply-To:  Your message of "Thu, 04 Aug 94 13:33:05 PDT"
  3703.  
  3704. >Have you seen Radar 4.0? It does most of what you are talking about for
  3705. >less money than GraceLan.
  3706.  
  3707. And I was told about 6 months ago that a future version would be scriptable.
  3708.  
  3709. pf
  3710. =========================================================================
  3711. Date:         Thu, 4 Aug 1994 17:25:36 -0400
  3712. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3713. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3714. From:         Lee Hoong <lhoong@EMORYU1.CC.EMORY.EDU>
  3715. Subject:      Re: Where to get Scriptable Finder
  3716.  
  3717. >>I've seen many references to the Scriptable Finder on this list, some of
  3718. >>which have stated that it is readily available. Where might that be?
  3719. >
  3720. >"Readily available" might be stretching it.  As far as I know, it's available
  3721. >only on the AppleScript Developer Kit CD from APDA.  It will, however, be
  3722. >bundled with System 7.5 for all.
  3723.  
  3724. I bought the Finder Scripting Toolkit from APDA for about $25.  It includes
  3725. the scriptable Finder and documentation.  Sorry, I don't recall the product
  3726. number.  Call APDA and ask for the product by name.
  3727.  
  3728. Lee.
  3729.  
  3730. Lee K. Hoong
  3731. Emory University
  3732. Atlanta, GA 30322
  3733. Internet: lhoong@unix.cc.emory.edu
  3734. AOL: LHOONG
  3735. ==========================
  3736. Opinions and comments expressed are mine; I do not represent Emory
  3737. University.
  3738. =========================================================================
  3739. Date:         Thu, 4 Aug 1994 17:33:02 -0400
  3740. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3741. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3742. From:         Barry Chern <bchern@FREENET.COLUMBUS.OH.US>
  3743. Subject:      strip leading
  3744.  
  3745. Is there an existing easy way to strip leading characters from a string
  3746. (I've got some mainframe output wit 00's padding out the beggining of
  3747. numeric fields) or do I have to use a couple of osaxen and get the find
  3748. out if there is a 0 at an offset of 1 and then delete each one until the
  3749. offset tests false?
  3750.  
  3751. Boy, it's hard to keep track of the commands in all those osaxen.
  3752.  
  3753. Barry
  3754. =========================================================================
  3755. Date:         Thu, 4 Aug 1994 16:43:53 -0500
  3756. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3757. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3758. From:         Fred Terry <pfterry@LKS.CSI.COM>
  3759. Subject:      Re: Where to get Scriptable Finder
  3760. In-Reply-To:  Your message of "Thu, 04 Aug 94 17:25:36 EDT"
  3761.  
  3762. >I bought the Finder Scripting Toolkit from APDA for about $25.  It includes
  3763. >the scriptable Finder and documentation.  Sorry, I don't recall the product
  3764. >number.  Call APDA and ask for the product by name.
  3765.  
  3766. I think the number is R0573Z/A. APDA's number is 800.282.2732.
  3767.  
  3768. pf
  3769. =========================================================================
  3770. Date:         Thu, 4 Aug 1994 15:10:38 -0800
  3771. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3772. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3773. From:         David Lewis <lewis@NETCOM.COM>
  3774. Subject:      Re: strip leading
  3775.  
  3776. >Is there an existing easy way to strip leading characters from a string
  3777. >(I've got some mainframe output wit 00's padding out the beggining of
  3778. >numeric fields) or do I have to use a couple of osaxen and get the find
  3779. >out if there is a 0 at an offset of 1 and then delete each one until the
  3780. >offset tests false?
  3781. >
  3782. >Boy, it's hard to keep track of the commands in all those osaxen.
  3783. >
  3784. >Barry
  3785.  
  3786. If you use Frontier Runtime as has been described in the list, the command
  3787. is string.popLeading. Its usage is
  3788.  
  3789. string.popLeading ("*****$33.33", '*')
  3790.         =BB $33.33
  3791. string.popLeading ("###34.23#", '#')
  3792.         =BB 34.23#
  3793. Note that it leaves the ending pound sign in place; only leading characters
  3794. are removed.
  3795.  
  3796. string.popLeading ("No leading characters here!", '#')
  3797.         =BB No leading characters here!
  3798. No leading characters found, so the string is returned unchanged.
  3799.  
  3800.         David
  3801.  
  3802.  
  3803. David Lewis     Seagate Technology      (408) 439-2374  lewis@netcom.com
  3804. =========================================================================
  3805. Date:         Fri, 5 Aug 1994 10:17:00 +1200
  3806. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3807. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3808. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  3809.               NZ" <LDO@WAIKATO.AC.NZ>
  3810. Subject:      Re: FaceSpan and AppleScript Developer's Kit 1.1
  3811.  
  3812. Israel Alvarez <Montressor@AOL.COM> writes:
  3813.  
  3814. >...it has a killer
  3815. >application called FaceSpan. FaceSpan is an interface builder for
  3816. >AppleScript.
  3817.  
  3818. It was originally called Frontmost (no capital M, as far as I'm aware).
  3819. Incidentally, I found out about the name change at WWDC, and I was able to
  3820. collar a couple of Software Designs people to ask them why they had to change
  3821. the name. The answer was, "Frontmost" was too similar to the name of another
  3822. product. Which product was that? I asked. "Frontier", they replied.
  3823.  
  3824. Now, really...
  3825.  
  3826. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  3827. Info & Tech Services Division              fax: +64-7-838-4066
  3828. University of Waikato            electric mail: ldo@waikato.ac.nz
  3829. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  3830. =========================================================================
  3831. Date:         Fri, 5 Aug 1994 10:23:00 +1200
  3832. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3833. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3834. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  3835.               NZ" <LDO@WAIKATO.AC.NZ>
  3836. Subject:      Re: Sender's address
  3837.  
  3838. "John W. Baxter" <jwbaxter@OLYMPUS.NET> writes:
  3839.  
  3840. >>How do I get the address of the application who sent the event to my script?
  3841. >
  3842. >I can't think of a way to do this.  I'll be happy to be educated.  In real
  3843. >code, it is trivial (there is an attribute one can extract from either the
  3844. >incoming event or the reply, in an AE Handler function which contains what
  3845. >is needed).  But that's not accessible to a script.  Nor does it seem
  3846. >possible to pass it along to an osax.  Nor is there AppleScript syntax to
  3847. >do the job of "telling" the decided-at-runtime application anything.
  3848.  
  3849. Just a thought: my AppleEvent utilities for HyperCard include an XFCN called
  3850. AEGetTheCurrentEvent, which calls the AppleEvent Manager routine of the same
  3851. name. With current versions of HyperCard, you can call this from within an
  3852. "On AppleEvent" handler, and get a complete copy of the current event this way.
  3853.  
  3854. My idea is: would a similar thing work from AppleScript as well? If you had
  3855. an osax that called AEGetTheCurrentEvent, and you invoked this from within
  3856. a script handler, would you get a copy of the event currently being handled?
  3857.  
  3858. Yeah, sure, I could probably write it first, and then find out whether it works,
  3859. but you know what us lazy programmers are like... :-)
  3860.  
  3861. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  3862. Info & Tech Services Division              fax: +64-7-838-4066
  3863. University of Waikato            electric mail: ldo@waikato.ac.nz
  3864. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  3865. =========================================================================
  3866. Date:         Thu, 4 Aug 1994 17:42:10 -0600
  3867. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3868. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3869. From:         Greg Hiner <hiner@MAIL.UTEXAS.EDU>
  3870. Subject:      Eudora Sorter
  3871.  
  3872. I wrote a script that works with Eudora 1.4.2 and sorts the new incoming
  3873. mail and moves it to a different mailbox if certain criteria are met (at
  3874. this point it just checks the "to: and "cc:" fields - great for keeping
  3875. your mailing lists from clogging up your in box). It runs via the Eudora
  3876. notifier feature.
  3877.  
  3878. I have a couple of questions -
  3879.  
  3880. If I have Eudora notify the script (saved as an app) directly it runs the
  3881. app in the foreground. As of now I wrote another program (a simple launcher
  3882. app in C) that takes the notification event and launches the script in the
  3883. background. I would like to eliminate the launcher app to simplify things
  3884. but I have yet to figure out how to get the script to launch and run in the
  3885. background automatically.
  3886.  
  3887. I would like to have the script check a data file to set its search
  3888. criteria instead of having to change and recompile the script every time I
  3889. want to add or change something that it looks for. Is this possible? Right
  3890. now I just have two lists at the front of the script that contain the
  3891. search criteria and the mailbox to move the item to if the search criteria
  3892. is met. If I can set up sometype of external data file would that cause a
  3893. big performance hit?
  3894.  
  3895. I just joined the list so excuse me if I'm asking something that has just
  3896. been covered.
  3897.  
  3898. Best-
  3899.  
  3900. Greg
  3901.  
  3902.  
  3903. ----------------------------------------------------------------------------
  3904. Greg Hiner                                      (512) 471-7134 ext.82
  3905. Computer Support                                hiner@mail.utexas.edu
  3906. Garrison Hall 318
  3907. University of Texas at Austin
  3908. Austin, TX 78712
  3909. =========================================================================
  3910. Date:         Thu, 4 Aug 1994 16:14:08 -0800
  3911. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3912. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3913. From:         "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
  3914. Subject:      Index of OSAXEN
  3915.  
  3916. Having suddenly realized that I had somewhere around 80 OSAXEN in my
  3917. Scripting Additions folder, and that it was actually slowing me down
  3918. without any reasonable utility (having the Audio CD OSAXEN, as cool as they
  3919. are, is sort of useless if my PowerCD is not connected to my Mac currently,
  3920. no?), I'm on a drive to minimize the number of OSAXEN I keep in Extensions.
  3921.  
  3922. The problem is that I have no idea which I am using now and which I am not.
  3923.  Basically, I need to
  3924.  
  3925. A) Find all the commands which the OSAXEN give me, and use it to determine
  3926. which I need.  This would be nice because it would also give me a
  3927. 'complete' dictionary
  3928.  
  3929. B) Find out (the hard way, I guess?) which OSAXEN each script needs, and
  3930. indicate it in the body of the script (I think from now on I'll be
  3931. indicating which OSAXEN are necessary for a script's function as a matter
  3932. of habit.
  3933.  
  3934. Now, how do I do this? I am somewhat reluctant to do an 'Open Dictionary'
  3935. in Script Editor for each OSAX.  Script Editor is not scriptable either,
  3936. unfortunately, so I seem to be screwed.
  3937.  
  3938. Is there any other way to extract commands from OSAXEN?
  3939.  
  3940. -roy
  3941. =========================================================================
  3942. Date:         Fri, 5 Aug 1994 00:13:11 -0400
  3943. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3944. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3945. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  3946. Subject:      Re: Index of OSAXEN
  3947. In-Reply-To:  <no.id> from "Roy S. Rapoport" at Aug 4, 94 04:14:08 pm
  3948.  
  3949. --Roy S. Rapoport wrote:
  3950. >
  3951. >Now, how do I do this? I am somewhat reluctant to do an 'Open Dictionary'
  3952. >in Script Editor for each OSAX.  Script Editor is not scriptable either,
  3953. >unfortunately, so I seem to be screwed.
  3954.  
  3955.     Check out the ScriptWizrd demo on gaea. It has a really nice
  3956. dictionary feature. Speaking of third party script utilities, I got a
  3957. pretty good look at Scripter from Main Event. I wasn not impressed. I
  3958. realize it's currently still in beta, but it has a very cluttered
  3959. interface. It seems to be suffering from being "the AppleScript
  3960. environment for everyone" and this is not a good thing, IMO. It does
  3961. look like it has some very nice tools for for beginning scripters, but I
  3962. would probably recommend beginners take a look at Script-A-File from our
  3963. own Danny Goodman. As freeware, it's a whole lot cheaper. ;->
  3964.  
  3965. -Hades
  3966. =========================================================================
  3967. Date:         Thu, 4 Aug 1994 21:39:16 -0700
  3968. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3969. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3970. From:         David Ray <daver@NETCOM.COM>
  3971. Subject:      Eudora scripting problem
  3972.  
  3973. I've discovered a strange problem with the following script. This script
  3974. checks the headers of each e-mail message in my "In" box and places it in
  3975. another box if one of the header fields matches a given string. I use this t=
  3976. o
  3977. sort through my listserv mail.
  3978.    Below are two scripts. The first one works, the second one doesn't.
  3979. Can anybody tell me why the second one doesn't work?
  3980.  
  3981. =46irst (working) script:
  3982.  
  3983. set rules to {{"MACSCRPT", "MacScripting List"}, {"HYPERCRD", "Hypercard"}}
  3984. tell application "Eudora1.4.3"
  3985.   activate
  3986.   repeat with m from (count message of mailbox "in" of mail folder "") =AC
  3987.              to 1 by -1
  3988.     set theMessage to (a reference to message m of mailbox "in" of mail =AC
  3989.              folder "")
  3990.     try
  3991.       set fieldSender to field "sender" of theMessage
  3992.       set proceed to true
  3993.     on error
  3994.       set proceed to false  -- message doesn't have the "sender" header
  3995.     end try
  3996.     if proceed then
  3997.       repeat with theRule in rules
  3998.         if fieldSender contains item 1 of theRule then
  3999.           set mailFolder to (a reference to mail folder "")
  4000.           move theMessage InsertHere end of mailbox (item 2 of theRule) =AC
  4001.                        of mailFolder
  4002.           exit repeat
  4003.         end if
  4004.       end repeat
  4005.     end if
  4006.   end repeat
  4007. end tell
  4008.  
  4009.  
  4010.  
  4011. Here is the non-working script:
  4012.  
  4013.  
  4014. set rules to {{"MACSCRPT", "MacScripting List", "sender"}, =AC
  4015.                 {"HYPERCRD", "Hypercard", "sender"}}
  4016. tell application "Eudora1.4.3"
  4017.   activate
  4018.   repeat with m from (count message of mailbox "in" of mail folder "") =AC
  4019.              to 1 by -1
  4020.     set theMessage to (a reference to message m of mailbox "in" of mail =AC
  4021.              folder "")
  4022.     try
  4023.       set fieldSender to field (item 3 of theRule) of theMessage  -- This li=
  4024. ne!
  4025.       set proceed to true
  4026.     on error
  4027.       set proceed to false  -- message doesn't have the "sender" header
  4028.     end try
  4029.     if proceed then
  4030.       repeat with theRule in rules
  4031.         if fieldSender contains item 1 of theRule then
  4032.           set mailFolder to (a reference to mail folder "")
  4033.           move theMessage InsertHere end of mailbox (item 2 of theRule) =AC
  4034.                        of mailFolder
  4035.           exit repeat
  4036.         end if
  4037.       end repeat
  4038.     end if
  4039.   end repeat
  4040. end tell
  4041.  
  4042.  
  4043. The only difference between the scripts is the line starting with
  4044. "set fieldSender". For some reason, I can't substitute 'field "sender"' with
  4045. a variable. Why is this????
  4046.  
  4047. -Dave
  4048.  
  4049. (By the way, the character =AC is supposed to be the option-return character=
  4050. ,
  4051.  in case your e-mail system gobbles it.)
  4052.  
  4053. ----------------------------------------------------------------------------=
  4054. --
  4055. David Ray                Dream Designs          Music Composition
  4056. daver@netcom.com         PO Box 5631            Interactive Multimedia
  4057. 510-527-9010             Berkeley CA 94705      Virtual Worlds
  4058. =========================================================================
  4059. Date:         Fri, 5 Aug 1994 00:59:00 -0400
  4060. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4061. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4062. From:         Eli Whitney Museum <eli@REVCO.MED.YALE.EDU>
  4063. Subject:      Scripting contest winners?
  4064.  
  4065. I thought that the scripting contest winners were going to be announced at
  4066. macworld expo, but i havnt heard anything about it, and havnt seen
  4067. anything on this list about it. maybe i missed it. what's the deal?
  4068.  
  4069. (please cc: replies to my email, as i dont read this list as throughly as
  4070. i should, and i might miss something)
  4071.  
  4072. thanx.
  4073.  
  4074. My opinions are mine only and tentative, pending further data
  4075.                       Matthew Ahrens
  4076. eli@revco.med.yale.edu              hscf@minerva.cis.yale.edu
  4077. ai261@FreeNet.Carleton.ca           ai158@FreeNet.Buffalo.edu
  4078. MacRules2@aol.com     <-Last Resorts->     Matthew210@aol.com
  4079. =========================================================================
  4080. Date:         Fri, 5 Aug 1994 01:08:26 -0400
  4081. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4082. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4083. From:         Bob Snyder <snyderra@DUNX1.OCS.DREXEL.EDU>
  4084. Subject:      Re: Where to get Scriptable Finder
  4085.  
  4086. At 3:07 PM 8/4/94, Danny Goodman wrote:
  4087.  
  4088. >"Readily available" might be stretching it.  As far as I know, it's available
  4089. >only on the AppleScript Developer Kit CD from APDA.  It will, however, be
  4090. >bundled with System 7.5 for all.
  4091.  
  4092. It was also on one of the _Develop_ CDs, which puts it in a lot more hands,
  4093. since a subscription to _Develop_ is only $30.
  4094.  
  4095. Bob
  4096.  
  4097. --
  4098. Bob Snyder N2KGO                                     MIME, RIPEM mail accepted
  4099. snyderra@dunx1.ocs.drexel.edu                       finger for RIPEM public key
  4100.          When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl.
  4101. =========================================================================
  4102. Date:         Fri, 5 Aug 1994 03:02:12 -0400
  4103. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4104. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4105. From:         Barry Chern <bchern@FREENET.COLUMBUS.OH.US>
  4106. Subject:      Can't write new script!
  4107.  
  4108. ACK! My AppleScript just broke in a really strange way. Everything seemed
  4109. fine last time I tried it. Tonight, I opened a script I'd been working on,
  4110. and copied and pasted part of it into a new window in the script editor.
  4111. When I tried to check the syntax, I got a dialog saying "couldn't [etc.
  4112. etc.] because I can't access the scripting system...etc."
  4113.  
  4114. I think I'd seen this once before, and restarting cleared things up, so I
  4115. restarted, turned of the latest extensions I'd added, opened up the text
  4116. version of the script I'd saved and...no soap. So I set about turning off
  4117. more and more extensions. No.
  4118.  
  4119. Finally, I re-installed AS from the PlainTalk 1.2 disks. It _still_
  4120. wouldn't work! Then I opened up the original script again. I said to
  4121. myself, this must have been working when I started this session because
  4122. opening this script caused another application involved to launch. So, I
  4123. made some changes to the script and lo and behold it compiled and ran and
  4124. gave me errors and everything. Trying to extract part of it into a new
  4125. window would continue to fail every time, however.
  4126.  
  4127. I thought it was something about the copying and pasting that was screwed.
  4128. But then I tried just starting a new script and typing into it, and that
  4129. gave me the same error. I'm desperate now. What the heck could this be?
  4130. Anyone else seen this?
  4131.  
  4132. If you have any insights, please cc the answer to me as well as the list,
  4133. since I get the Digest and won't see it until late tomorrow night.
  4134.  
  4135. thanks,
  4136. Barry
  4137. =========================================================================
  4138. Date:         Fri, 5 Aug 1994 03:08:57 -0400
  4139. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4140. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4141. From:         Barry Chern <bchern@FREENET.COLUMBUS.OH.US>
  4142. Subject:      strip leading
  4143.  
  4144. Thanks for the info on how to do this with Frontier. That looks like just
  4145. what I need. Unfortunately, I'm likely to be giving this to another party
  4146. and would like to be able to make it work with AppleScript and as few
  4147. other neccessary pieces as possible. (I'm already up to one OSAX thrown
  4148. in.) Frontier Runtime may be one piece of software too many for their
  4149. system, for all I know. So I'm still open for suggestions.
  4150.  
  4151. B.
  4152. =========================================================================
  4153. Date:         Fri, 5 Aug 1994 03:28:48 -0400
  4154. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4155. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4156. From:         Barry Chern <bchern@FREENET.COLUMBUS.OH.US>
  4157. Subject:      Can't write new script! (not)
  4158.  
  4159. Wow. ten minutes after sending that message, I solved the problem. Never
  4160. satisfied to leave something alone, I figured that I hadn't tried just
  4161. opening the script editor without any script or file and just start from
  4162. scratch. Well, it still didn't work, but then I happened to look at that
  4163. little box at the bottom of the script window where the scripting language
  4164. is displayed. There was the little down pointing triangle, but it was
  4165. otherwise blank. I clicked on it, and some choices showed up, I chose
  4166. AppleScript and everything was happy again.
  4167.  
  4168. I'm guessing that somehow, because I had just tried out Frontier Runtime
  4169. but was no longer running it, there was a blank choice selected as the
  4170. default scripting language. Doesn't seem right, but it's just a guess
  4171. anyway.
  4172.  
  4173. Something to look out for, anyway.
  4174.  
  4175. B.
  4176. =========================================================================
  4177. Date:         Fri, 5 Aug 1994 11:17:08 EETDST
  4178. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4179. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4180. From:         Tero Loimuneva <Tero.Loimuneva@TH.TELE.FI>
  4181. Subject:      Re: Sender's address
  4182. In-Reply-To:  <9408050414.AA27859@smtp.tele.fi>; from "Automatic digest
  4183.               processor" at Aug 5, 94 12:00 am
  4184.  
  4185. >>>How do I get the address of the application who sent the event to my script?
  4186.  
  4187. --John:
  4188. >I can't think of a way to do this.  I'll be happy to be educated.  In real
  4189. >code, it is trivial (there is an attribute one can extract from either the
  4190. >incoming event or the reply, in an AE Handler function which contains what
  4191. >is needed).  But that's not accessible to a script.  Nor does it seem
  4192. >possible to pass it along to an osax.  Nor is there AppleScript syntax to
  4193.  
  4194. Yup. It's very easy to get the address once you get the original AppleEvent
  4195. in your hands - but that's the problem.
  4196.  
  4197. >Or switch to Frontier, where a handler for a custom event can dig the
  4198. >address attribute out of the incoming event, and keep it around for later
  4199. >use.
  4200.  
  4201. That's the exact feature I'm looking for in the AppleScript - I'm not ready to
  4202. move into Frontier. That would be too much of an investment mentally and
  4203. economically - at least right now.
  4204.  
  4205. --Judith
  4206. >in hyperCard (even 2.1) there is a message (hypertalk):
  4207. >appleEvent theClass, theId, theSender
  4208.  
  4209. Yes, I've seen that and I made a series of desperate tests to get the address
  4210. in a similar way with no luck.
  4211.  
  4212. --Lawrence
  4213. >Just a thought: my AppleEvent utilities for HyperCard include an XFCN called
  4214. >AEGetTheCurrentEvent, which calls the AppleEvent Manager routine of the same
  4215. >name. With current versions of HyperCard, you can call this from within an
  4216. >"On AppleEvent" handler, and get a complete copy of the current event this way.
  4217. >My idea is: would a similar thing work from AppleScript as well? If you had
  4218. >an osax that called AEGetTheCurrentEvent, and you invoked this from within
  4219. >a script handler, would you get a copy of the event currently being handled?
  4220.  
  4221. I thought of the osax too but does the osax get ANYTHING about the original
  4222. AppleEvent sent to the whole handler - I doupt. I'm pretty sure that the AE
  4223. the osax gets is sent by the SCRIPT and so includes the address of the script
  4224. who calls the osax not the original client software.
  4225.  
  4226. ...or is there a way to get still unhandled Apple Event somehow (the one that
  4227. the script is still handling while calling my osax) ? I have IM VI but should I
  4228. read it more carefully :)  That way yes - I could get the original AE and
  4229. after that the whole thing would be easy as 3.14156.
  4230.  
  4231. >Yeah, sure, I could probably write it first, and then find out whether it
  4232. >works, but you know what us lazy programmers are like... :-)
  4233.  
  4234. Looks like I have a small program to make for holding the sender's address -
  4235. some kind of front door for the events. I already made the client program
  4236. (in Pascal) that sends those events to my script... it doesn't sound just
  4237. right. I SHOULD be able to parse the sender's address from the incoming
  4238. AE in AS  :=(
  4239.  
  4240.  
  4241.         - Loimu         (tloimune@denethor.th.tele.fi)
  4242.                         (tloimune@vipunen.hut.fi)
  4243. =========================================================================
  4244. Date:         Fri, 5 Aug 1994 09:07:31 CDT
  4245. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4246. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4247. From:         Peter Fleck - SMM <fleck@ASTRO.SPA.UMN.EDU>
  4248. Subject:      ScriptWizard Demo Bug?
  4249.  
  4250. I've been trying out the ScriptWizard Demo and I'm very impressed and
  4251. considering ordering it before the current special ends (end of the month, I
  4252. think).
  4253.  
  4254. However... every time I try to do a find on a script I get some sort of serious
  4255. system error. No error message, just a complete freeze of the Mac. Can't get
  4256. to MacsBug, can't force quit, the only alternative is to restart. I tried this
  4257. with most extensions off (except AS, of course) and still got the freeze.
  4258.  
  4259. Is this a known problem (hopefully) with the demo? Will the real ScriptWizard
  4260. work just fine?
  4261.  
  4262. Peter
  4263. =========================================================================
  4264. Date:         Fri, 5 Aug 1994 11:43:29 -0500
  4265. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4266. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4267. From:         Nathan Urban <nurban@SYSPLAN.COM>
  4268. Subject:      Eudora as an MDA
  4269.  
  4270. I want to have some sort of scriptable mail-delivery agent.  It only needs
  4271. to just send mail (so far, at least).  How can I get an AppleScript to do
  4272. this, and yet not interfere with my Eudora for personal mail?  The script
  4273. will need to change the preferences and such, and I don't want Eudora
  4274. retrieving mail while the script is operating, and I don't want the script
  4275. to interfere with my reading mail.  I guess this requires running two
  4276. copies of the Eudora application separately?  Is this possible?  Am I
  4277. better off finding some other mail-delivery agent to use?  I suppose I
  4278. could even write a script to open an SMTP connection.
  4279.  
  4280. On a related note, how can I get Eudora to open a preferences file?  Maybe
  4281. I'm being really dense, but I didn't see anything in the dictionary for it.
  4282.  
  4283. ------------------------------------------------------------------------------
  4284. Nathan Urban                                   Voice:(703) 351-8489
  4285. System Planning Corporation (SPC)              Fax:  (703) 351-8662
  4286. 1429 North Quincy Street                       E-mail: nurban@sysplan.com
  4287. Arlington, VA  22207                                   nurban@vt.edu
  4288. ----------------------------------------------------------------------------
  4289. --
  4290. =========================================================================
  4291. Date:         Fri, 5 Aug 1994 09:20:24 -0700
  4292. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4293. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4294. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  4295. Subject:      Re: Can't write new script! (not)
  4296.  
  4297. >Wow. ten minutes after sending that message, I solved the problem. Never
  4298. >satisfied to leave something alone, I figured that I hadn't tried just
  4299. >opening the script editor without any script or file and just start from
  4300. >scratch. Well, it still didn't work, but then I happened to look at that
  4301. >little box at the bottom of the script window where the scripting language
  4302. >is displayed. There was the little down pointing triangle, but it was
  4303. >otherwise blank. I clicked on it, and some choices showed up, I chose
  4304. >AppleScript and everything was happy again.
  4305. >
  4306. >I'm guessing that somehow, because I had just tried out Frontier Runtime
  4307. >but was no longer running it, there was a blank choice selected as the
  4308. >default scripting language. Doesn't seem right, but it's just a guess
  4309. >anyway.
  4310.  
  4311. Indeed.  I see this problem in a different aspect:  I always (well, almost
  4312. always) have Frontier running, so I don't see the inability to connect to
  4313. the scripting component form of the problem.  My form is this:  I create a
  4314. UserTalk script in Script Editor, do whatever with it, then quit Script
  4315. Editor.  Later, I launch Script Editor again, and enter a perfectly nice
  4316. AppleScript script into the untitled window.  And get syntax errors, since
  4317. the window is set for UserTalk.
  4318.  
  4319. I have learned that for me, what works is to open new script window and set
  4320. the language to AppleScript, after I've led Script Editor to believe I want
  4321. to work in UserTalk.
  4322.  
  4323. It's an interesting feature of Script Editor.  I can't say it's wrong,
  4324. since it makes sense that someone would want to work in the same language
  4325. most of the time.  Sometime down the road, if Script Editor is revisited, a
  4326. preference might be nice:
  4327.  
  4328.    new scripts are:  same language as last time
  4329.                      AppleScript
  4330.                      other language 1
  4331.                      ...
  4332.  
  4333. Oh, well.  --John
  4334.  
  4335. --
  4336. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  4337. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  4338. =========================================================================
  4339. Date:         Fri, 5 Aug 1994 12:10:42 -0500
  4340. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4341. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4342. From:         "Desmond K. Mullen" <mulle009@MAROON.TC.UMN.EDU>
  4343. Subject:      Re: FaceSpan and AppleScript Developer's Kit 1.1
  4344.  
  4345. >At any rate, I'm curious if anyone else has heard of this app, or has the
  4346. >developer's kit. It cost $150 from APDA, and in my mind, it's well worth it.
  4347.  
  4348. I have had the developer's kit for many months now and have made great use
  4349. of it. When I bought it they where still bundling FaceSpan's predecessor
  4350. FrontMost. FrontMost was really interesting but after working with it, I
  4351. thought it stunk! I'm sure the things that didn't work have mostly been
  4352. fixed with FaceSpan.
  4353.  
  4354. -DM
  4355.  
  4356. Desmond K. Mullen - University of Minnesota, Office of Admissions
  4357. mulle009@maroon.tc.umn.edu - 612/625-0824 - Minneapolis, Minnesota, USA
  4358. =========================================================================
  4359. Date:         Fri, 5 Aug 1994 12:10:43 -0500
  4360. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4361. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4362. From:         "Desmond K. Mullen" <mulle009@MAROON.TC.UMN.EDU>
  4363. Subject:      Re: Sender's address
  4364.  
  4365. >>How do I get the address of the application who sent the event to my script?
  4366. >>
  4367. >>I know "return" will return a AE reply to the sender, but how can I send
  4368. >>other events to the client program afterwards? I can't find any mention
  4369. >>about it... not in FAQ, not in a couple of months reading this listserv...
  4370. >
  4371. >I can't think of a way to do this.  I'll be happy to be educated.  In real
  4372. >code, it is trivial (there is an attribute one can extract from either the
  4373. >incoming event or the reply, in an AE Handler function which contains what
  4374. >is needed).  But that's not accessible to a script.  Nor does it seem
  4375. >possible to pass it along to an osax.  Nor is there AppleScript syntax to
  4376. >do the job of "telling" the decided-at-runtime application anything.
  4377.  
  4378.  
  4379. Well, how about HyperCard 2.2? It's pretty fantastic with IAC. It can
  4380. easily tell you who the sender of any type of Apple Event it received was
  4381. and you can always keep that info and use it later. HyperCard is pretty
  4382. adept at sending Apple Event in raw forms or via AS or Frontier.
  4383.  
  4384. I've used these features a lot and never been disappointed.
  4385.  
  4386. -DM
  4387.  
  4388. Desmond K. Mullen - University of Minnesota, Office of Admissions
  4389. mulle009@maroon.tc.umn.edu - 612/625-0824 - Minneapolis, Minnesota, USA
  4390. =========================================================================
  4391. Date:         Fri, 5 Aug 1994 12:23:15 -0600
  4392. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4393. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4394. From:         Greg Hiner <hiner@MAIL.UTEXAS.EDU>
  4395. Subject:      Re: Eudora as an MDA
  4396.  
  4397. >I want to have some sort of scriptable mail-delivery agent.  It only needs
  4398. >to just send mail (so far, at least).  How can I get an AppleScript to do
  4399. >this, and yet not interfere with my Eudora for personal mail?  The script
  4400. >will need to change the preferences and such, and I don't want Eudora
  4401. >retrieving mail while the script is operating, and I don't want the script
  4402. >to interfere with my reading mail.  I guess this requires running two
  4403. >copies of the Eudora application separately?  Is this possible?  Am I
  4404. >better off finding some other mail-delivery agent to use?  I suppose I
  4405. >could even write a script to open an SMTP connection.
  4406. >
  4407. >On a related note, how can I get Eudora to open a preferences file?  Maybe
  4408. >I'm being really dense, but I didn't see anything in the dictionary for it.
  4409. >
  4410. >------------------------------------------------------------------------------
  4411. >Nathan Urban                                   Voice:(703) 351-8489
  4412. >System Planning Corporation (SPC)              Fax:  (703) 351-8662
  4413. >1429 North Quincy Street                       E-mail: nurban@sysplan.com
  4414. >Arlington, VA  22207                                   nurban@vt.edu
  4415. >----------------------------------------------------------------------------
  4416. >--
  4417.  
  4418. Get TCP/IP scripting additions - ftp to gaea.kgs.ukans.edu - in the
  4419. applescript /OSAXEN folder. There is a sample script in that distribution
  4420. that shows how to use his additions to send mail.
  4421.  
  4422. Hope this helps -
  4423.  
  4424. Best-
  4425. Greg
  4426. =========================================================================
  4427. Date:         Fri, 5 Aug 1994 12:39:44 -0600
  4428. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4429. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4430. From:         Greg Hiner <hiner@MAIL.UTEXAS.EDU>
  4431. Subject:      TCP/IP scripting additions
  4432.  
  4433. I am trying to script a link tester - ie a script that will walk through
  4434. html documents and test out links to make sure they are still good. A
  4435. common problem with running a web server is that the links can start going
  4436. bad and you don't know it. Something automated would be nice.
  4437.  
  4438. I picked up the TCP/IP scripting additions (very nice!) and threw something
  4439. together that makes a connection and checks the status to see if there is a
  4440. machine at the other end. Well all seems to work well if there is actually
  4441. a machine but when I try to hit other machines that don't have servers
  4442. running the scripts seems to freeze.
  4443.  
  4444. I tried nesting the connect statment in a try statement but that didn't
  4445. seem to make any difference.
  4446.  
  4447. Now admittedly I don't know that much about how all the TCP stuff works but
  4448. here are my assumptions. (see example below) I figured I would either get a
  4449. "Connected" if there was a machine there listening at that port - or a "No
  4450. Connection" if there was no machine or nobody listening at the specified
  4451. port. But somewhere along the way things seem to break down.
  4452.  
  4453. Some questions -
  4454.  
  4455. when I say tcp connect and it tries to connect with a machine with no
  4456. server running at the specified port what happens?
  4457.  
  4458. Have I made a terrible assumption in the above?
  4459.  
  4460. Any help would be appreciated.
  4461.  
  4462. Best-
  4463. Greg
  4464.  
  4465.  
  4466.  
  4467.  
  4468. *******This is what i have been working with********
  4469.  
  4470. set testHost to "uts.cc.utexas.edu"
  4471. set testPort to 80
  4472.  
  4473.  
  4474. set test_stream to (tcp connect to host testHost port testPort)
  4475. set testResult to "No result"
  4476. repeat
  4477.         if (connection status of =AC
  4478.                 (tcp status stream test_stream) =3D Connected) then
  4479.                 set testResult to "Connection OK"
  4480.                 tcp close stream test_stream
  4481.                 exit repeat
  4482.         end if
  4483.  
  4484.         if (connection status of =AC
  4485.                 (tcp status stream test_stream) =3D No connection) then
  4486.                 set testResult to "No Connection"
  4487.                 tcp close stream test_stream
  4488.                 exit repeat
  4489.         end if
  4490. end repeat
  4491.  
  4492.  
  4493. display dialog "The result was " & testResult
  4494.  
  4495.  
  4496. *******end********
  4497. =========================================================================
  4498. Date:         Fri, 5 Aug 1994 11:26:39 -0700
  4499. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4500. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4501. From:         Steve Kalkwarf <kalkwarf@NETCOM.COM>
  4502. Subject:      Re: Index of OSAXEN
  4503.  
  4504. >I would probably recommend beginners take a look at Script-A-File from our
  4505. >own Danny Goodman. As freeware, it's a whole lot cheaper. ;->
  4506.  
  4507. I've gotta ask...Where can it be found? I checked gaea, AOL, and the disk
  4508. that came with Danny's book.
  4509.  
  4510. Steve
  4511. =========================================================================
  4512. Date:         Fri, 5 Aug 1994 13:35:09 -0500
  4513. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4514. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4515. From:         Fred Terry <pfterry@LKS.CSI.COM>
  4516. Subject:      Re: Index of OSAXEN
  4517. In-Reply-To:  Your message of "Fri, 05 Aug 94 11:26:39 PDT"
  4518.  
  4519. >>I would probably recommend beginners take a look at Script-A-File from our
  4520. >>own Danny Goodman. As freeware, it's a whole lot cheaper. ;->
  4521. >
  4522. >I've gotta ask...Where can it be found? I checked gaea, AOL, and the disk
  4523. >that came with Danny's book.
  4524.  
  4525. I pulled it from the Ziff-Net Mac section on CI$ (compuspend) a couple of
  4526. nights ago. It's the MacUser Utility of the Month. And as such, can't be
  4527. uploaded anywhere else. I suppose it should also be available on eWorld since
  4528. Ziff-Davis has an area there, too.
  4529.  
  4530. pf
  4531. =========================================================================
  4532. Date:         Fri, 5 Aug 1994 14:54:05 -0500
  4533. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4534. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4535. From:         Steve Jones <STJONES@ACAD1.MTSU.EDU>
  4536. Subject:      Re: Index of OSAXEN
  4537.  
  4538. Sript a file IS available on eWorld.  That's where I got it.
  4539.  
  4540. stj
  4541. Steven T. Jones
  4542. Assistant Professor of Design & Technology
  4543. Middle Tennessee State University
  4544. =========================================================================
  4545. Date:         Fri, 5 Aug 1994 17:52:51 -0400
  4546. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4547. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4548. From:         Barry Chern <bchern@FREENET.COLUMBUS.OH.US>
  4549. Subject:      strip leading
  4550.  
  4551. The message about the Frontier process for this led me to think about  how
  4552. AS could do it without osaxen, and I set up a repeat while character 1 of
  4553. etc = "0". (Took me awhile to figure out I needed the quotes, too.)
  4554.  
  4555. New frustration. I can generate the new value of the text item in question
  4556. in a variable, but I can't figure out any way to set the text item (or the
  4557. text of the text item, or the contents of the text item) to that variable.
  4558. Is there no way to alter a text item in AS? My whole approach in this
  4559. script so far depends on reading in a tab-delimited file and treating each
  4560. of the entries as a text item. It seemed like the only way to go until
  4561. now.
  4562. =========================================================================
  4563. Date:         Fri, 5 Aug 1994 18:39:24 -0400
  4564. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4565. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4566. From:         Nikolaos Daniel Willmore <ndw1@COLUMBIA.EDU>
  4567. Subject:      Script Memory Size vs. File Size.
  4568.  
  4569. OK, all is well, but my scripts are memory hogs. Yuk. The story is, I'm
  4570. using Jon's commands to spool the Clipboard to disk then having MacPGP
  4571. act upon that file, then spooling the result back to the Clipboard.
  4572. Problem is, if the text on the Clipboard is 30K my little 8K app
  4573. needs 300K to work! Roughly it needs 10 times the memory of the
  4574. size of the Clipboard, or it either just locks up (!) indefinitely,
  4575. gives a memory error, or fails to create the spool file and says
  4576. file not found. Here is the sort of thing I'm doing....
  4577.  
  4578. if length of (the clipboard) = 0 then
  4579.         display dialog "The Clipboard does not contain text." buttons {"OK"}
  4580. default button "OK"
  4581.  
  4582. else
  4583.         set pathToDesktop to path to desktop
  4584.         set ClipboardSpool to (pathToDesktop as string) & "Clipboard Temp.asc"
  4585.         set PGPOutput to (pathToDesktop as string) & "Clipboard Temp"
  4586.  
  4587.         open for access file ClipboardSpool with write permission
  4588.         write (the clipboard) to ClipboardSpool
  4589.         close access ClipboardSpool
  4590.  
  4591.         try
  4592.                 tell application "MacPGP"
  4593.                         execute (("pgp \"" & ClipboardSpool as string) & "\"")
  4594.                         if (list folder ((path to system folder as string) &
  4595. "OtherMenu Folder:Settings:")) contains "  Keep MacPGP running" then quit
  4596.                 end tell
  4597.  
  4598.         on error
  4599.  
  4600.                 tell application "Burn 2.1"
  4601.                         open ClipboardSpool
  4602.                         quit
  4603.                 end tell
  4604.  
  4605.                 display dialog "Sorry, there was an error. If it was MacPGP's
  4606. recycling of bad passphrases, try \"Decrypt\" again" buttons {"OK"} default
  4607. button "OK"
  4608.                 tell application "MacPGP" to quit
  4609.                 return
  4610.  
  4611.         end try
  4612.  
  4613.         try
  4614.  
  4615.                 open for access file PGPOutput
  4616.                 set the clipboard to (read PGPOutput)
  4617.                 close access PGPOutput
  4618.  
  4619.                 tell application "Burn 2.1"
  4620.                         open ClipboardSpool
  4621.                         open PGPOutput
  4622.                         quit
  4623.                 end tell
  4624.  
  4625. Is there any way to do "write (the clipboard) to ClipboardSpool" and
  4626. "set the clipboard to (read PGPOutput)
  4627. "  without needed an order of magnitude more RAM than it should
  4628. require? A scripting addition which did this Clipboard<->file thing
  4629. would sure help :-).
  4630.  
  4631.  - Nik
  4632.  
  4633. P.S. I'm on a PowerBok 180c with 14MB.
  4634. =========================================================================
  4635. Date:         Fri, 5 Aug 1994 16:06:25 -0800
  4636. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4637. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4638. From:         "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
  4639. Subject:      Opening a script saved as app
  4640.  
  4641. Apparently there is a way to open Frontier scripts by Cmd-doubleclicking
  4642. them.  Is there something similar for AS?
  4643.  
  4644. -roy
  4645.  
  4646. Roy S. Rapoport                                          rsr@berksys.com
  4647. 2095 Rose St                                         Berkeley   CA   94709
  4648. Berkeley Systems would have to pay me a lot more if they
  4649. wanted me to speak for them.
  4650. =========================================================================
  4651. Date:         Fri, 5 Aug 1994 16:35:20 -0800
  4652. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4653. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4654. From:         Erik Smith <ersmith@UCSD.EDU>
  4655. Subject:      AppleScript as a network software installer/updater system
  4656.  
  4657. I'm experimenting with the idea of using AppleScript as a software
  4658. installation and distribution system.  The runtime components of
  4659. AppleScript, as I understand it, is something I can distribute to my users
  4660. (right?).  A typical script would be: "Install Mosaic", which would check
  4661. to see if the application exists locally, check its version, and then quit
  4662. the application and install mosaic from a folder on a server.  This script
  4663. would do such things as: tell the user to quit the application or quit the
  4664. application for them, put up a progress screen (using Progress Bar) compare
  4665. version numbers, get previous application memory settings, extract files
  4666. from stuffit archives by scripting stuffit expander, restore memory
  4667. settings, and e-mail the Computer Staff about the installation.  An
  4668. installer script for an application such as Mosaic should also invoke
  4669. installer scripts for helper applications.
  4670.  
  4671. Such a setup would require that users have the runtime components of
  4672. AppleScript installed as well as helper apps and the required OSAXes.
  4673.  
  4674. We have GraceLAN, which works pretty well, but I'm looking for a more user
  4675. driven installation system.  With GraceLAN you always have to re-construct
  4676. the package document every time you have a new or updated file to
  4677. distribute.  With AppleScript, I could just drop the updated files in place
  4678. on the server somewhere, construct the scripts (once) and place them either
  4679. on the server or distribute them to the users, and then let them run the
  4680. installation script.  AppleScript also has the potential do to all kinds of
  4681. cool stuff related to installation, like restoring the application memory
  4682. setting.
  4683.  
  4684. It would be nice if I had the option of launching the scripts myself, but I
  4685. havent found a mechanism that is going to allow this.  There is Script
  4686. Daemon, but it would require a lot of additional stuff to set it up right
  4687. and it requires AFP login ability, which is ususally disabled around here
  4688. for security reasons.  With GraceLAN for base installations, I'm not sure
  4689. that it's all that important to have "Admin installs".  I think I would
  4690. make a master script that users could choose that would run a bunch of
  4691. standard installation scripts.  The scripts are efficient in the sense that
  4692. they know when not to do an installation when its already been done.
  4693.  
  4694.  
  4695. Questions to be answered:
  4696.  
  4697. * How do I check for the existance of a file in AppleScript given a pathname?
  4698.  
  4699. * How do I get references to the special system folder folders: Extensions,
  4700. Control Panels, etc.
  4701.  
  4702. * Can compiled scripts run read-only on a network server?
  4703.  
  4704. * How do I locate occurances application by type?  This isn't essential for
  4705. me because I generally install applications in a standard user folder
  4706. called "Software", regardless of other copies of the application that the
  4707. user has.
  4708.  
  4709. * How do I get the volume name of the startup drive?
  4710.  
  4711. * Will it find local applications on different machines without prompting?
  4712. (Basically, how do scripts remember how to launch target apps?  If its by a
  4713. file alias, then there could be problems.
  4714.  
  4715. * How do I check for 68K or PPC?  This is necessary for installing native
  4716. software that is not Fat.  Perhaps this is present in some type of Gestalt
  4717. OSAX.
  4718.  
  4719. * How to I get and set the application memory size settings?
  4720.  
  4721. * How do I check the version number?
  4722.  
  4723. * How much RAM is a typical installation script (including AppleScript
  4724. memory) going to require on a users machine?
  4725.  
  4726. * How do I check for the amount of free space on a disk?  I would probably
  4727. just check against some raw number like 5 MB.
  4728.  
  4729. * (Somewhat unrelated:) Anyone seen any sample OSAX source code?  I may
  4730. have to write some of this stuff myself.
  4731.  
  4732. If you have info on just one of these questions, feel free to reply. Thanks
  4733. for any help.
  4734.  
  4735. -Erik
  4736.  
  4737.  
  4738.  
  4739.  
  4740.  
  4741.  
  4742.  
  4743.  
  4744. ______________________________________________________________________
  4745. Erik Smith                   | ersmith@ucsd.edu  Internet
  4746. Computing Services Director  | (619) 534-1989    office
  4747.                              | (619) 534-3939    fax
  4748. ______________________________________________________________________
  4749. Graduate School of International Relations and Pacific Studies (IR/PS)
  4750. University of California, San Diego (UCSD)
  4751. ______________________________________________________________________
  4752. =========================================================================
  4753. Date:         Fri, 5 Aug 1994 17:52:16 -0800
  4754. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4755. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4756. From:         "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
  4757. Subject:      Re: AppleScript as a network software installer/updater system
  4758.  
  4759. At 16:35 8/5/94 -0800, Erik Smith wrote:
  4760. >I'm experimenting with the idea of using AppleScript as a software
  4761. >installation and distribution system.
  4762.  
  4763. I'm starting to get into Installer Making myself (playing with Smaller
  4764. Installer and Aladdin Installer Maker right now).  I like your idea -- I've
  4765. figured that if I could count on the user having AS, writing installers
  4766. would be laughingly easy (except for the fact that AS can't give you the
  4767. Blessed system folder for anything other than the active drive, I believe).
  4768.  I like your idea.
  4769.  
  4770. >It would be nice if I had the option of launching the scripts myself, but I
  4771. >havent found a mechanism that is going to allow this.
  4772.  
  4773. If you know where the scripts are (how much control do you have over your
  4774. users? Can they change the location of these scripts), you could just tell
  4775. the Finder to launch them, no?
  4776.  
  4777.  
  4778. >* How do I check for the existance of a file in AppleScript given a pathname?
  4779. useful code I saw here fairly recently:
  4780. try
  4781.         info for ("Disk:Folder1:Folder2:....:File" as alias)
  4782. on error
  4783.         display dialog "does not exist"
  4784. end try
  4785.  
  4786. >* How do I get references to the special system folder folders: Extensions,
  4787. >Control Panels, etc.
  4788.  
  4789. path to system folder
  4790. or
  4791. path to control panels
  4792. or
  4793. path to extensions
  4794.  
  4795. You get the idea ...
  4796.  
  4797. >* Can compiled scripts run read-only on a network server?
  4798.  
  4799. I would see no reason why not, but I don't *know* they can...
  4800.  
  4801. >* How do I get the volume name of the startup drive?
  4802.  
  4803. text item 1 of (list disks)
  4804.  
  4805. >* How to I get and set the application memory size settings?
  4806.  
  4807. The scriptable finder can probably do this, but I don't have it yet so I
  4808. dont' know.
  4809.  
  4810. >* How do I check the version number?
  4811.  
  4812. short version of (info for ("Disk:Folder1:Folder2:....:File"))
  4813.  
  4814. >* How much RAM is a typical installation script (including AppleScript
  4815. >memory) going to require on a users machine?
  4816.  
  4817. For some of my reason, perhaps due to RunningApps, some of my scripts are
  4818. suddenly unhappy with 200K, so I've upped it to 400K (they're running on
  4819. machines with relatively obscene amounts of RAM, so it's not an issue).
  4820. Experiment :)
  4821.  
  4822. -roy
  4823.  
  4824. Roy S. Rapoport                                          rsr@berksys.com
  4825. 2095 Rose St                                         Berkeley   CA   94709
  4826. Berkeley Systems would have to pay me a lot more if they
  4827. wanted me to speak for them.
  4828. =========================================================================
  4829. Date:         Fri, 5 Aug 1994 20:41:15 -0800
  4830. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4831. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4832. From:         David Lewis <lewis@NETCOM.COM>
  4833. Subject:      can a Frontier string span lines?
  4834.  
  4835. I can't seem to find the documentation on how Frontier strings are formed.
  4836. I know I've read, for instance, that you can have a string contain quotes
  4837. by doing something like =B3a quote containing "quote"=B2 but I can't remembe=
  4838. r
  4839. where I saw it. The point of this long screed is that now I'd like to have
  4840. a string span several lines in order to pass it as a whole to KeyQuencer. I
  4841. know I can embed a "\r" or "=AE" character, but that doesn't enhance
  4842. readability in the same way. Any ideas? Thanks.
  4843.  
  4844.         David
  4845.  
  4846. David Lewis     Seagate Technology      (408) 439-2374  lewis@netcom.com
  4847. =========================================================================
  4848. Date:         Sat, 6 Aug 1994 00:59:43 -0400
  4849. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4850. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4851. From:         Barry Chern <bchern@FREENET.COLUMBUS.OH.US>
  4852. Subject:      Re: Can't write new script! (not)
  4853. In-Reply-To:  <199408060447.AAA04337@acme.freenet.columbus.oh.us>
  4854.  
  4855. JWB>
  4856. JWB> It's an interesting feature of Script Editor. I can't say it's
  4857. JWB> wrong, since it makes sense that someone would want to work in the
  4858. JWB> same language most of the time. Sometime down the road, if Script
  4859. JWB> Editor is revisited, a preference might be nice
  4860.  
  4861. And, perhaps the Script Editor's alert for the situation should not be so
  4862. alarmist. It kept asking me if I really thought the scripting system was
  4863. installed properly, and did nothing to remind me that there might be more
  4864. than one scripting system it would be looking for.
  4865. =========================================================================
  4866. Date:         Sat, 6 Aug 1994 01:37:55 -0700
  4867. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4868. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4869. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  4870. Subject:      Re: Opening a script saved as app
  4871.  
  4872. >Apparently there is a way to open Frontier scripts by Cmd-doubleclicking
  4873. >them.  Is there something similar for AS?
  4874.  
  4875. In the Frontier case, it is as you say command-double-click.  In the
  4876. AppleScript script application case, where the splash screen has been
  4877. suppressed, use control-double-click to get the splash screen.  Now, the
  4878. last command in the Edit menu will edit the script.
  4879.  
  4880. But...it's usually easier to drag-and-drop the script application onto the
  4881. Script Editor.
  4882.  
  4883.    --John
  4884.  
  4885. --
  4886. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  4887. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  4888. =========================================================================
  4889. Date:         Sat, 6 Aug 1994 01:38:03 -0700
  4890. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4891. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4892. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  4893. Subject:      Re: can a Frontier string span lines?
  4894.  
  4895. >I can't seem to find the documentation on how Frontier strings are formed.
  4896. >I know I've read, for instance, that you can have a string contain quotes
  4897. >by doing something like =B3a quote containing "quote"=B2 but I can't rememb=
  4898. er
  4899. >where I saw it.
  4900.  
  4901. This form goes back to Frontier 1.0.  It's probably in the printed
  4902. documentation somewhere...it's now in the DocServer page for " " (the
  4903. pseudo verb quote-space-quote).
  4904.  
  4905. As of Frontier 3.0 (I think it was), \" will also embed a quote, as in this
  4906. string which contains only a quote:  "\""
  4907.  
  4908.  
  4909. >The point of this long screed is that now I'd like to have
  4910. >a string span several lines in order to pass it as a whole to KeyQuencer. I
  4911. >know I can embed a "\r" or "=AE" character, but that doesn't enhance
  4912. >readability in the same way. Any ideas? Thanks.
  4913.  
  4914. If KeyQuencer requires the return characters, you can as you say imbed them
  4915. with \r (or you can use "This is a line." + cr) (cr is a built-in
  4916. constant).
  4917.  
  4918. If you want (also, or only) to line the string up nicely in your script
  4919. window, you can build it in pieces on continued lines:
  4920.  
  4921. "This is line 1\r" + \
  4922. "This is some more."
  4923.  
  4924. The \ must be the last thing on the continued line (I don't think even a
  4925. trailing space will work).
  4926.  
  4927.    --John
  4928.  
  4929. --
  4930. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  4931. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  4932. =========================================================================
  4933. Date:         Sat, 6 Aug 1994 00:37:07 -0800
  4934. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4935. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4936. From:         Chuck McKinnon <mckinnon@KAIWAN.COM>
  4937. Subject:      Message text in Eudora
  4938.  
  4939. I'm stumped. How do you get the text of a message w/o using GetData to get
  4940. the whole message and the parse out the header?
  4941.  
  4942. (BTW, what does the [r/o] in the dictionary stand for?)
  4943.  
  4944. --
  4945. TIA
  4946.  
  4947. Chuck
  4948. =========================================================================
  4949. Date:         Sat, 6 Aug 1994 00:37:13 -0800
  4950. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4951. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4952. From:         Chuck McKinnon <mckinnon@KAIWAN.COM>
  4953. Subject:      MacPGP/IMPI scripts
  4954.  
  4955. I have the IMPI (Interim Mac PGP Interface) scripts but they need AS 1.1
  4956. and that's what I ain't got!
  4957. So,
  4958.    could I get someone (who is using 1.1) to translate the compiled scripts
  4959. into text files so I can recompile them for 1.0?
  4960.  
  4961. I will supply the archive or if you have it, could you just forward the
  4962. text files to me.
  4963.  
  4964. Please respond by email (mckinnon@kaiwan.com) to save the bandwidth.
  4965.  
  4966. Thanks for the read!
  4967. __
  4968.  
  4969. chuck
  4970. =========================================================================
  4971. Date:         Sat, 6 Aug 1994 11:58:31 EDT
  4972. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4973. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4974. From:         Shaddar@AOL.COM
  4975. Subject:      Re: Where to get Scriptable Finder
  4976.  
  4977. >It was also on one of the _Develop_ CDs, which puts it in a lot more hands,
  4978. >since a subscription to _Develop_ is only $30.
  4979.  
  4980. Where did you subscribe for $30.  Every mention I've seen of it in APDA
  4981. catalogs lists it for $250.  I'd really like to get it but was discouraged by
  4982. the cost.  $30 I can handle.  Could you give me any info you have?
  4983.  
  4984. Thanks  :)
  4985.  
  4986. ~Shaddar
  4987. =========================================================================
  4988. Date:         Sat, 6 Aug 1994 12:29:31 -0500
  4989. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4990. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4991. From:         Roy Eassa <re@ZORK.TIAC.NET>
  4992. Subject:      Re: Where to get Scriptable Finder
  4993.  
  4994. At 11:58 AM 8/6/94 -0400, Shaddar@AOL.COM wrote:
  4995. >>It was also on one of the _Develop_ CDs, which puts it in a lot more hands,
  4996. >>since a subscription to _Develop_ is only $30.
  4997. >
  4998. >Where did you subscribe for $30.  Every mention I've seen of it in APDA
  4999. >catalogs lists it for $250.  I'd really like to get it but was discouraged by
  5000. >the cost.  $30 I can handle.  Could you give me any info you have?
  5001.  
  5002. Me too!  Please post or summarize for all to see.
  5003.  
  5004.  
  5005. --
  5006. Roy Eassa
  5007. re@tiac.net
  5008. =========================================================================
  5009. Date:         Sat, 6 Aug 1994 11:58:30 -0500
  5010. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5011. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5012. From:         Fred Terry <pfterry@LKS.CSI.COM>
  5013. Subject:      Re: Where to get Scriptable Finder
  5014. In-Reply-To:  Your message of "Sat, 06 Aug 94 12:29:31 CDT"
  5015.  
  5016. >At 11:58 AM 8/6/94 -0400, Shaddar@AOL.COM wrote:
  5017. >>>It was also on one of the _Develop_ CDs, which puts it in a lot more hands,
  5018. >>>since a subscription to _Develop_ is only $30.
  5019. >>
  5020. >>Where did you subscribe for $30.  Every mention I've seen of it in APDA
  5021. >>catalogs lists it for $250.  I'd really like to get it but was discouraged by
  5022. >>the cost.  $30 I can handle.  Could you give me any info you have?
  5023. >
  5024. >Me too!  Please post or summarize for all to see.
  5025. >--
  5026. >Roy Eassa
  5027. >re@tiac.net
  5028.  
  5029. He's referring to the bookmark cd which comes with develop magazine;
  5030. not the Developer's cd. However, some of the goodies on the Developer's
  5031. cd usually find there way to the bookmark cd (it always has electronic
  5032. versions of the magazine articles and the source code). The price is
  5033. 27.00 (part number M0929LL/A) if ordered from APDA (800/282-2732). They
  5034. also sell back issue for 10.00 each.
  5035.  
  5036. Hope that clarifies the matter.
  5037.  
  5038. pf
  5039. =========================================================================
  5040. Date:         Sat, 6 Aug 1994 10:30:15 -0700
  5041. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5042. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5043. From:         Denny Cahan <dennyc@NETCOM.COM>
  5044. Subject:      subscribe
  5045.  
  5046. thanks
  5047. =========================================================================
  5048. Date:         Sat, 6 Aug 1994 10:55:17 PDT
  5049. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5050. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5051. From:         Nelson Byrne <Nelson@NBYRNE.SAIC.COM>
  5052. Subject:      Read as record
  5053.  
  5054. "Lawrence D'Oliveiro, Waikato University, Hamilton, NZ"
  5055. <LDO@WAIKATO.AC.NZ>
  5056. wrote of using a (read as record, write) pair in AS.
  5057. That sounded good to me, kind of like namelist in Fortran,
  5058. so I tried it. It donUt work.
  5059.  
  5060. (read as list/write) is OK.
  5061.  
  5062. as record io works maybe one time out of twenty, generally
  5063. fails either by returning a screenful of garbage or by
  5064. uplocking my computer. i suspect a bug in the osax.
  5065.  
  5066. and yet it worked for Lawrence D'Oliveiro. Hmmm.
  5067.  
  5068. Comments?
  5069. >>>>>Nelson@nbyrne.SAIC.com
  5070.      Nelson Byrne
  5071.      SAIC  LOC#001/MS#C2
  5072.      10260 Campus Point Drive
  5073.      Sandy Eggo, CA 92121
  5074. >>>>>(619) 546-6485
  5075. =========================================================================
  5076. Date:         Sat, 6 Aug 1994 08:42:19 -1000
  5077. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5078. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5079. From:         Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
  5080. Subject:      Getting the front application dilemma
  5081.  
  5082. Hi,
  5083.   Here is the problem I am having:  I want to get the identity of the
  5084. front-most application when my script is launched via OtherMenu so that I
  5085. can switch back to that app after my script launches another app.
  5086.  
  5087. I need my scripts to be applications so they can handle drag-n-drop
  5088. processing though.
  5089.  
  5090. I've tried using some of the scripting additions to get the name of the
  5091. current application.  They just return the name of the script droplet that
  5092. is launched, which is how they are supposed to behave.  But it's not what I
  5093. want!
  5094.  
  5095. I want the name of the appliation that was active right before someone
  5096. launches my script droplet.  Is there anyway to do this?
  5097.  
  5098. Any ideas?
  5099. =========================================================================
  5100. Date:         Sat, 6 Aug 1994 15:16:12 -0400
  5101. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5102. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5103. From:         Joseph Block <jpb@GATE.NET>
  5104. Subject:      Thanks for resource pointer
  5105.  
  5106. Thanks to all the listmembers that pointed out the GTQLib1.2 resource
  5107. editing osaxen.
  5108.  
  5109. jpb@gate.net
  5110. =========================================================================
  5111. Date:         Sat, 6 Aug 1994 15:05:02 -0600
  5112. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5113. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5114. From:         Tom Donovan <donovan@COVIS.NWU.EDU>
  5115. Subject:      Re: Message text in Eudora
  5116.  
  5117. Chuck,
  5118.  
  5119. >I'm stumped. How do you get the text of a message w/o using GetData to get
  5120. >the whole message and the parse out the header?
  5121. >
  5122.  
  5123. set foo to field "" of mailbox "In" of mail folder ""
  5124.  
  5125. >(BTW, what does the [r/o] in the dictionary stand for?)
  5126.  
  5127. [r/o] = read only
  5128. >
  5129. >--
  5130. >TIA
  5131. >
  5132. >Chuck
  5133.  
  5134. You're quite welcome.
  5135.  
  5136. --Tom
  5137.  
  5138. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  5139. Tom Donovan           "The city is a place where a small boy, as he walks
  5140. Support Specialist     through it, may see something that will tell him what
  5141. CoVis Project          he wants to do his whole life."
  5142. Northwestern Univ.
  5143. E-mail: donovan@covis.nwu.edu                     --Louis I. Kahn
  5144. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  5145. =========================================================================
  5146. Date:         Sat, 6 Aug 1994 15:56:44 -0700
  5147. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5148. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5149. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  5150. Subject:      Re: Where to get Scriptable Finder
  5151.  
  5152. >>It was also on one of the _Develop_ CDs, which puts it in a lot more hands,
  5153. >>since a subscription to _Develop_ is only $30.
  5154. >
  5155. >Where did you subscribe for $30.  Every mention I've seen of it in APDA
  5156. >catalogs lists it for $250.  I'd really like to get it but was discouraged by
  5157. >the cost.  $30 I can handle.  Could you give me any info you have?
  5158.  
  5159. "develop" magazine.  Not the "Developer Technical Information" series, or
  5160. whatever name it goes by this week.  The latter is the 3 figure one (which
  5161. I do buy, having never bothered to become an "Associate").  The former is a
  5162. quarterly magazine, with a CD included.  It's not at all new:  the June
  5163. 1994 issue is #18.  Each CD contains all the back issues, with text
  5164. corrections, and the source code (with corrections).  And other stuff,
  5165. which has varied over time.
  5166.  
  5167. The magazine is worth $30...the CD is therefore "free".  The CD is worth
  5168. $30...the magazine is therefore "free".  Gee...they're both free!!
  5169.  
  5170. The better way to subscribe (for $30 in the US, $50 anywhere else) is to
  5171. call 800-877-5548 in the US, or 815-734-1116 from other countries.
  5172.  
  5173. APDA will attempt to sell subscriptions (but has a history of losing them,
  5174. instead) for $27 plus $3 shipping [US price, international not known here].
  5175.  
  5176.    --John
  5177.  
  5178. --
  5179. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  5180. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  5181. =========================================================================
  5182. Date:         Sat, 6 Aug 1994 16:40:17 -0700
  5183. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5184. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5185. From:         "Douglas R. Peckham" <dopeckh@EIS.CALSTATE.EDU>
  5186. Subject:      Re: can a Frontier string span lines?
  5187. In-Reply-To:  <199408060839.BAA21078@eis.calstate.edu>
  5188.  
  5189. Hi Applescripters,
  5190.  
  5191. Just one quick question: does the number of scripting additions in the
  5192. "scripting additions" folder affects the amount of time it takes to compile?
  5193.  
  5194. Aaron
  5195.  
  5196. --
  5197. Aaron Peckham                 "There are three kinds of people in the
  5198. dopeckh@eis.calstate.edu       world: those who can count, and
  5199. Proud member of Barney is Bad  those who can't." -- anonymous
  5200.                      Unhealthy snacks are fun!
  5201. =========================================================================
  5202. Date:         Sat, 6 Aug 1994 14:15:51 -1000
  5203. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5204. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5205. From:         Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
  5206. Subject:      Eudora scripts
  5207.  
  5208. Hi,
  5209.   I'm having trouble figuring the syntax of AppleScript commands in
  5210. Eudora. It seems pretty confusing to me.
  5211.  
  5212. Are there any AppleScript examples on the Qualcomm ftp site? or on
  5213. gaea?
  5214.  
  5215. If anyone has any Eudora AppleScripts that they can send me, I would
  5216. appreciate it.
  5217.  
  5218. Thanks,
  5219. -peter
  5220. =========================================================================
  5221. Date:         Sat, 6 Aug 1994 20:49:55 -0400
  5222. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5223. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5224. From:         Kiran Wagle <groo@NETCOM.COM>
  5225. Subject:      AS variable scoping (theory question!)
  5226.  
  5227. Hi folks,
  5228.  
  5229. Disclaimer; I'm a Scheme programmer and am used to *lexical scoping*.
  5230.  
  5231. So I have this procedure, which I want to name WhatsUp which draws a dialog
  5232. containing the results of some other procedures which are passed variables.
  5233.  
  5234.  
  5235. I have two top-level identifiers (variables) called InBox and BoxFolder.
  5236.  
  5237. (This is a script for Eudora, to flush erroneous Reply-To: headers inserted
  5238. by certain persky mailing lists (not all of them listservs, either!))
  5239.  
  5240. Now.  When I write some code to draw the dialog telling me how many
  5241. messages are beign flushed in what boxes etc, it runs fine when not wrapped
  5242. by an "On WhatsUp".  However, if I wrap it with an "On WhatSup()" it says
  5243. "The variable InBox is not defined."
  5244.  
  5245. In Scheme, if a procedure is called and does not have a local variable
  5246. named InBox, it uses the variables named InBox in the calling procedure,
  5247. and so on until it FINDS some.  Seemingly, this is not happening here.
  5248. (Lexical scoping is precisely this: variables are looked up by looking at
  5249. the TEXT of the code, fully expanded of course, until an identifier is
  5250. found.  One can determine on paper what a variable refers to.)
  5251.  
  5252. So of course I tried "Set InBox to InBox" in the hope that this would force
  5253. the lookup of "InBox" in the calling function, but no such luck.
  5254.  
  5255. Do I HAVE to declare these things global?  Is there a way, (besides
  5256. explicit passing of environments <grin>) to fake lexical scoping in AS?
  5257.  
  5258. Why NOT declare things global you ask?  Well, because that would presumably
  5259. override everything that I think is local, and I would have to specify all
  5260. variables local inside procedures (I think.)  Nor do I want to explicitly
  5261. pass lots of variables into functions.  I just want WhatsUp to know the
  5262. variables known to the function that called it.
  5263.  
  5264. Thanks for any suggestions.  (Telling me to write my own AS interpreter in
  5265. Scheme has already occurred to me, but I dunno any Schemes that can grok
  5266. appleevents.)  Pointers to an AS language spec would be really great.
  5267.  
  5268. ~ Kiran
  5269.  
  5270. --
  5271. "I have never yet written anything, long or short, that did not surprise me.
  5272.  That is, for me, the greatest worth of writing, which is only incidentally
  5273.  a way of telling others what you think.  Its first use is for the _making_
  5274.  of what you think, for the discovery of understanding, an act that happens
  5275.  only in language."....................Richard Mitchell, _The Gift of Fire_
  5276.  
  5277.  6216 41st Avenue Hyattsville MD 20782 301/779-0756 <groo@netcom.com>
  5278. =========================================================================
  5279. Date:         Sat, 6 Aug 1994 22:47:28 -0400
  5280. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5281. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5282. From:         Kiran Wagle <groo@NETCOM.COM>
  5283. Subject:      Eudora 2.1 notification handler
  5284.  
  5285. Has anyone written a script with a working handler for Eudora notification
  5286. events?  I've been trying with NO success.  I'm using 2.1b35, but would be
  5287. happy to see a working handler for any version.
  5288.  
  5289. Thanks,
  5290.  
  5291. ~ Kiran
  5292.  
  5293. --
  5294. 6216 41st Avenue Hyattsville MD 20782 301/779-0756 <groo@netcom.com>
  5295. =========================================================================
  5296. Date:         Sun, 7 Aug 1994 00:19:42 -0500
  5297. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5298. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5299. From:         "Mobilio, Dominick" <MOBILD@PRINCE.MM.WYETH.COM>
  5300. Subject:      FileMaker Import Scripts
  5301.  
  5302. From: Mobilio, Dominick
  5303. Date: Sun, Aug 7, 1994 0:19 AM
  5304. Subject: FileMaker Import Scripts
  5305. To: MacScripting
  5306. I'm trying to write a droplet that, when you drag a few text files onto the
  5307. icon, they are imported into a FileMaker file through a script in the FileMaker
  5308. file.  How do I do this?  The problem is that the script in FileMaker either
  5309. brings up a dialog box asking you to pick the file to import or a file is hard
  5310. coded into the script.  It defeats the purpose of writing a droplet in the
  5311. first place to sit there while the droplet executes picking files one at a
  5312. time.  Does anyone have any ideas on how to do this?  Do I have to wait for the
  5313. scriptable finder?  Then I can probably change the name of the files one at a
  5314. time to match the one hard coded into the FileMaker script.
  5315.  
  5316. Dominick
  5317. =========================================================================
  5318. Date:         Sat, 6 Aug 1994 21:45:09 -0700
  5319. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5320. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5321. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  5322. Subject:      Re: AS variable scoping (theory question!)
  5323.  
  5324. >Hi folks,
  5325. >
  5326. >Disclaimer; I'm a Scheme programmer and am used to *lexical scoping*.
  5327. >
  5328. >So I have this procedure, which I want to name WhatsUp which draws a dialog
  5329. >containing the results of some other procedures which are passed variables.
  5330. >
  5331. >
  5332. >I have two top-level identifiers (variables) called InBox and BoxFolder.
  5333. >
  5334. >(This is a script for Eudora, to flush erroneous Reply-To: headers inserted
  5335. >by certain persky mailing lists (not all of them listservs, either!))
  5336. >
  5337. >Now.  When I write some code to draw the dialog telling me how many
  5338. >messages are beign flushed in what boxes etc, it runs fine when not wrapped
  5339. >by an "On WhatsUp".  However, if I wrap it with an "On WhatSup()" it says
  5340. >"The variable InBox is not defined."
  5341.  
  5342. "Naked" statement in a script are invisibly wrapped in a run handler, as if
  5343. they were all enclosed in
  5344.  
  5345. on run ()
  5346. ...
  5347. end run
  5348.  
  5349. So your top-level variables are local to the run handler, and not visible
  5350. from the WhatSup handler.  You can make them global, or (perhaps better)
  5351. make them properties.
  5352.  
  5353. ------
  5354. I'm not sure why it was designed this way...probably so something would
  5355. happen when the script is told to "run".
  5356.    --John
  5357.  
  5358. --
  5359. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  5360. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  5361. =========================================================================
  5362. Date:         Sun, 7 Aug 1994 12:40:25 PDT
  5363. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5364. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5365. From:         Kerry Northrup <Tech.Ed@EWORLD.COM>
  5366. Subject:      Re: Anyone know of any good "timing" examples?
  5367.  
  5368. MR Mac - Michael Robertson <robertso@SDSC.EDU> writes:
  5369.  
  5370. ::::
  5371. Rather than reinvent the wheel, I'm wondering if anyone out there knows of
  5372. any AppleScript code samples that deal with timed execution. By that I mean
  5373. a script that will accept some sort of scheduling input and create an event
  5374. which will execute at a certain date and time. An example would be to
  5375. "ping" a server at a certain time. I would like an example that was
  5376. dynamic. i.e. It received user input and then would execute at a later
  5377. time. Any help greatly appreciated and go ahead and send the scripts to me
  5378. via e-mail if you got any laying around! :)
  5379. ::::
  5380.  
  5381. This is a good use of QuicKeys in association with AppleScript. You can have
  5382. a timed QuicKey that launches a certain script application, or loads and runs
  5383. a compiled script or sends a handler call to a running script or application.
  5384.  
  5385. /kj
  5386.  
  5387. Kerry J. Northrup
  5388. Technology Editor/Advanced Systems Lab
  5389. Gannett Co. Inc.
  5390. =========================================================================
  5391. Date:         Mon, 8 Aug 1994 09:31:21 +1200
  5392. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5393. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5394. From:         Owen Watson <owen@RSNZ.GOVT.NZ>
  5395. Subject:      Re: Eudora 2.1 notification handler
  5396.  
  5397. >Has anyone written a script with a working handler for Eudora notification
  5398. >events?  I've been trying with NO success.  I'm using 2.1b35, but would be
  5399. >happy to see a working handler for any version.
  5400. >
  5401. Something that would be REALLY useful is a script that would run with
  5402. MailShare, the Mac POP3 mailserver, to notify users they have mail. At the
  5403. moment, MailShare can work with Notify, but a. it's expensive, and b. it's
  5404. yet another program that I have to maintain on user's machines. Oh for a
  5405. nice clean AEVT notification!
  5406.  
  5407. BTW, I have Eudora 2.03; any changes in 2.1 worth shouting about, or are
  5408. there non-diclosure agreements about?
  5409.  
  5410. -------------------------------------------------------------------------
  5411. Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
  5412. Internet watson.o@rsnz.govt.nz  Ph: +64 4 472 7421 Fax: +64 4 473 1841
  5413. The gateway to New Zealand science: http://www.rsnz.govt.nz/
  5414. =========================================================================
  5415. Date:         Mon, 8 Aug 1994 00:02:20 -0400
  5416. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5417. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5418. From:         Boris Levitin <boris@WORLD.STD.COM>
  5419. Subject:      Re: Rebuild Desktop -> Extensions Off
  5420.  
  5421. One way to force a rebuild of the desktop files upon restart is to create
  5422. a folder called "Desktop" in the root directory of the disk and restart.
  5423. System 7 checks for an item (it doesn't check whether it's a file or folder)
  5424. by that name, because the old System 6 Desktop file was called that. Of course,
  5425. once the rebuild is done, the "Desktop" folder has to be deleted. This is
  5426. probably the only way to rebuild the Desktop files in the recommended manner
  5427. (i.e. during reboot) from a script.
  5428.  
  5429. Boris Levitin                                  WGBH Public Broadcasting, Boston
  5430.                                    boris@world.std.com * boris_levitin@wgbh.org
  5431.               I produced this message and am solely responsible for its content
  5432. =========================================================================
  5433. Date:         Mon, 8 Aug 1994 07:47:37 +0100
  5434. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5435. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5436. From:         Judith =?iso-8859-1?Q?Kert=E9sz?= SUCHARD <suchard@CNAM.FR>
  5437. Subject:      Re: AS variable scoping (theory question!)
  5438.  
  5439. >Hi Richard,
  5440.  
  5441. >However, if I wrap it with an "On WhatSup()" it says "The variable InBox is
  5442. >not defined."
  5443.  
  5444. I do 2 things (one of it and some times the other)
  5445.  
  5446. 1. you can say =3D             my InBox
  5447. 2. you can set InBox as a property (or a reference to it)
  5448.  
  5449. My refers to the top script. It is needed for using top-level soubprogramms =
  5450. too.
  5451. Hope this work for you,
  5452.  
  5453. Chaleureusement,
  5454.  
  5455. Judith
  5456. _________________________________________
  5457. Judith Kert=E9sz Suchard                  suchard@cnam.cnam.fr
  5458. C.N.A.M. Labo Informatique             AppleLink: cnam
  5459. 25, rue Mont Cenis                         Tel:(1) 40 27 25 57
  5460. 75018 Paris, France                     Fax: 40 27 27 72
  5461. _________________________________________
  5462. "La simplicit=E9, c'est le fruit d'un long effort"
  5463. =========================================================================
  5464. Date:         Mon, 8 Aug 1994 09:49:36 -0400
  5465. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5466. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5467. From:         Jeffrey Hammer <jhammer@HELIX.NIH.GOV>
  5468. Subject:      Re: Eudora as an MDA
  5469.  
  5470. >I want to have some sort of scriptable mail-delivery agent.  It only needs
  5471. >to just send mail (so far, at least).  How can I get an AppleScript to do
  5472. >this, and yet not interfere with my Eudora for personal mail?  The script
  5473. >will need to change the preferences and such, and I don't want Eudora
  5474. >retrieving mail while the script is operating, and I don't want the script
  5475. >to interfere with my reading mail.  I guess this requires running two
  5476. >copies of the Eudora application separately?  Is this possible?  Am I
  5477. >better off finding some other mail-delivery agent to use?  I suppose I
  5478. >could even write a script to open an SMTP connection.
  5479. >
  5480. >On a related note, how can I get Eudora to open a preferences file?  Maybe
  5481. >I'm being really dense, but I didn't see anything in the dictionary for it.
  5482. >
  5483. >------------------------------------------------------------------------------
  5484. >Nathan Urban                                   Voice:(703) 351-8489
  5485. >System Planning Corporation (SPC)              Fax:  (703) 351-8662
  5486. >1429 North Quincy Street                       E-mail: nurban@sysplan.com
  5487. >Arlington, VA  22207                                   nurban@vt.edu
  5488. >----------------------------------------------------------------------------
  5489. >--
  5490. You don't need to use different copies of the Eudora application, just make
  5491. a copy of the Eudora settings file and store it in a different folder.
  5492. Launch the program by opening the settings file.
  5493.  
  5494. Jeff.
  5495.  =========================================================================
  5496. Jeffrey Hammer                          |  Tel: (301) 496-6647
  5497. LMCN/NINDS/NIH                          |
  5498. Bldg. 49, Rm. 2B08                      |  FAX: (301) 496-8244
  5499. 9000 Rockville Pike                     |
  5500. Bethesda, MD  20892                     |
  5501.  =========================================================================
  5502. =========================================================================
  5503. Date:         Mon, 8 Aug 1994 08:46:47 -0500
  5504. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5505. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5506. From:         Fred Terry <pfterry@LKS.CSI.COM>
  5507. Subject:      application suite for Frontier
  5508.  
  5509. Nobumi Iyanaga has contributed a Frontier suite that creates an application
  5510. table. You'll find it in
  5511.  
  5512. ftp://gaea.kgs.ukans.edu/frontier/gluefiles/appsuite.hqx
  5513.  
  5514. An extract from the ReadMe file follows. Enjoy
  5515.  
  5516. pf
  5517.  
  5518.  
  5519. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5520. >From the ReadMe....
  5521.  
  5522. This suite is intended to facilitate an automatic creation of
  5523. Frontier application table for any application you want,
  5524. especially for applications that have no Apple Event support
  5525. at all or have only a minimum of Apple Event support (i.e. the
  5526. Required Suite).  For the newer and scriptable applications
  5527. (which have 'aete' resource), the best is to make their application
  5528. tables with the "Commercial Developers" suite bundled with
  5529. Frontier 3.0.  This "addToAppTableSuite" can be seen as a
  5530. correspondant tool for those applications older and non
  5531. scriptable.  When their application tables are built in the
  5532. <system.verbs.apps> table, you can control them with scripts
  5533. of type :
  5534. app.start ("Nisus");
  5535. with Nisus {
  5536.          bringToFront ();
  5537.          openDocument ("HD:Folder:Document");
  5538.          ....}.
  5539. Here is a list of new "verbs" that can be used when the application
  5540. tables are created :
  5541. a] All Applications (Apple Event aware or non aware) :
  5542. bringToFront () / doMenu (Menu, MenuItem) [<- via QuicKeys
  5543. 3.0] / doQKScript (script) [<- via QuicKeys 3.0] / isRunning () /
  5544. launch () / launchWithDocument (path) / openDocument (path)
  5545. / runQKMacro (macroName) [<- via QuicKeys 3.0]
  5546. b] Apple Event Aware Applications only :
  5547. printDocument (path) / quitApplication () / doScript (script)
  5548. [<- for applications that are controlled by their own scripts]
  5549. =========================================================================
  5550. Date:         Mon, 8 Aug 1994 09:22:43 -0600
  5551. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5552. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5553. From:         Greg Hiner <hiner@MAIL.UTEXAS.EDU>
  5554. Subject:      Re: Eudora scripts
  5555.  
  5556. >Hi,
  5557. >  I'm having trouble figuring the syntax of AppleScript commands in
  5558. >Eudora. It seems pretty confusing to me.
  5559. >
  5560. >Are there any AppleScript examples on the Qualcomm ftp site? or on
  5561. >gaea?
  5562. >
  5563. >If anyone has any Eudora AppleScripts that they can send me, I would
  5564. >appreciate it.
  5565. >
  5566. >Thanks,
  5567. >-peter
  5568.  
  5569. Yes its not easy - for a good hint at how it's done look on qualcomm's ftp
  5570. site. Let me know if you have anymore questions.
  5571.  
  5572. Greg
  5573. =========================================================================
  5574. Date:         Mon, 8 Aug 1994 09:22:45 -0600
  5575. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5576. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5577. From:         Greg Hiner <hiner@MAIL.UTEXAS.EDU>
  5578. Subject:      Re: Eudora 2.1 notification handler
  5579.  
  5580. >Has anyone written a script with a working handler for Eudora notification
  5581. >events?  I've been trying with NO success.  I'm using 2.1b35, but would be
  5582. >happy to see a working handler for any version.
  5583. >
  5584. >Thanks,
  5585. >
  5586. >~ Kiran
  5587. >
  5588. >--
  5589. >6216 41st Avenue Hyattsville MD 20782 301/779-0756 <groo@netcom.com>
  5590.  
  5591. Not that this is what you are really looking for but -
  5592.  
  5593.  
  5594. the problem I found with the Eudora notification event is that is brings
  5595. the script you want to do something with Eudora into the foreground and in
  5596. most cases you want this script to work in the background. My solution was
  5597. to write a bit of C code that catches the notification event and then
  5598. launches the script in the background.
  5599.  
  5600. Hope this isn't too far off the point.
  5601.  
  5602.  
  5603. Greg
  5604. =========================================================================
  5605. Date:         Mon, 8 Aug 1994 13:01:32 -0400
  5606. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5607. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5608. From:         Frank Lowney <flowney@GC3.GAC.PEACHNET.EDU>
  5609. Subject:      passing data to hyperCard
  5610.  
  5611. I need to pass large (greater than 30 K) chunks of data from AS to HC.  A
  5612. field will not handle that much data so a variable should do the trick.
  5613. However, I haven't yet been able to figure out how to pass global vars back
  5614. and forth between AS and HC.  Please enlighten me.
  5615.  
  5616. *********************************************************************
  5617. Dr. Frank Lowney, Director, Regional Teacher Education Center
  5618.                   System Administrator, The GC EduNET Project
  5619. CBX 034, School of Education
  5620. Georgia College, Milledgeville, GA 31061-0490
  5621. Voice: (912) 453-5121
  5622. via GC EduNET, Georgia's Statewide K-12 Education Network, telnet to:
  5623.         gcedunet.peachnet.edu
  5624. *********************************************************************
  5625. =========================================================================
  5626. Date:         Mon, 8 Aug 1994 14:12:59 -0500
  5627. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5628. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5629. From:         Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
  5630. Subject:      Re: FileMaker Import Scripts
  5631.  
  5632. >I'm trying to write a droplet that, when you drag a few text files onto the
  5633. >icon, they are imported into a FileMaker file through a script in the FileMaker
  5634. >file.  How do I do this?  The problem is that the script in FileMaker either
  5635. >brings up a dialog box asking you to pick the file to import or a file is hard
  5636. >coded into the script.  It defeats the purpose of writing a droplet in the
  5637. >first place to sit there while the droplet executes picking files one at a
  5638. >time.  Does anyone have any ideas on how to do this?  Do I have to wait for the
  5639. >scriptable finder?  Then I can probably change the name of the files one at a
  5640. >time to match the one hard coded into the FileMaker script.
  5641.  
  5642. What I would do would be to store the contents of the dropped files into an
  5643. applescript record:
  5644. ie. set aRecord to {age:12,name:"Mark",address:"hadfield@sickkids.on.ca"}
  5645. If you don't care about the order in which the data gets put into
  5646. Filemaker, all you have to do is:
  5647.         Tell application "Filemaker Pro" to set record 1 to aRecord
  5648. where record 1 is a blank record.
  5649.  
  5650. Mark Hadfield
  5651. hadfield@sickkids.on.ca
  5652. The Hosptial For Sick Children
  5653. =========================================================================
  5654. Date:         Mon, 8 Aug 1994 11:31:53 -0800
  5655. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5656. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5657. From:         Mike Hopkins <mhopkins@NETCOM.COM>
  5658. Subject:      Re: MACSCRPT Digest - 3 Aug 1994 to 4 Aug 1994
  5659.  
  5660. Roy:
  5661.  
  5662. Try ScriptWizard - the demo is posted on gaea
  5663. (ftp://gaea.kgs.ukans.edu/applescript/demos/ScriptWiz.Demo.sit.hqx)
  5664.  
  5665. The SYstem Dictionary feature lets you look at all of the OSAXEN as part of
  5666. the "System Object Suite".
  5667.  
  5668. We are selling it for $45 until the end of August.  If you want the order
  5669. form, its also there under
  5670. (ftp://gaea.kgs.ukans.edu/applescript/PRs/ScriptWizardPR.sit.hqx)
  5671.  
  5672. Best Regards,
  5673.  
  5674. MGH
  5675.  
  5676. >
  5677. >Date:    Thu, 4 Aug 1994 16:14:08 -0800
  5678. >From:    "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
  5679. >Subject: Index of OSAXEN
  5680. >
  5681. >
  5682. >Now, how do I do this? I am somewhat reluctant to do an 'Open Dictionary'
  5683. >in Script Editor for each OSAX.  Script Editor is not scriptable either,
  5684. >unfortunately, so I seem to be screwed.
  5685. >
  5686. >Is there any other way to extract commands from OSAXEN?
  5687. >
  5688. >-roy
  5689.  
  5690. Mike Hopkins                |   PH:  (408)253-7199
  5691. Full Moon Software, Inc.    |   FAX: (408)252-2379
  5692. P.O. Box 700237             |   CIS: 70713,2664
  5693. San Jose, CA  95170         |   AOL: MHopkins
  5694. =========================================================================
  5695. Date:         Mon, 8 Aug 1994 14:52:58 -0400
  5696. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5697. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5698. From:         John Schettino <js12@GTE.COM>
  5699. Subject:      Re: AS variable scoping (theory question!)
  5700.  
  5701. >Hi folks,
  5702. >
  5703. >Disclaimer; I'm a Scheme programmer and am used to *lexical scoping*.
  5704.  
  5705. Warning! Warning! Warning!
  5706.  
  5707. You will have to shift gears. AppleScript uses the following scoping rules:
  5708.  
  5709. A script may contain one or more handlers,
  5710.   as well as global and local data declarations.
  5711.  
  5712. A handler may declare local variables, or just start using them.
  5713.  
  5714. A variable is locally scoped to the nesting level where it is declared.
  5715.  
  5716.  
  5717. >So I have this procedure, which I want to name WhatsUp which draws a dialog
  5718. >containing the results of some other procedures which are passed variables.
  5719. >
  5720. >
  5721. >I have two top-level identifiers (variables) called InBox and BoxFolder.
  5722.  
  5723. >Now.  When I write some code to draw the dialog telling me how many
  5724. >messages are beign flushed in what boxes etc, it runs fine when not wrapped
  5725. >by an "On WhatsUp".  However, if I wrap it with an "On WhatSup()" it says
  5726. >"The variable InBox is not defined."
  5727.  
  5728. InBox and BoxFolder are must be declared as globals or properties for this
  5729. to work.
  5730.  
  5731. >Why NOT declare things global you ask?  Well, because that would presumably
  5732. >override everything that I think is local, and I would have to specify all
  5733. >variables local inside procedures (I think.)  Nor do I want to explicitly
  5734. >pass lots of variables into functions.  I just want WhatsUp to know the
  5735. >variables known to the function that called it.
  5736.  
  5737.  
  5738. The lookup rules are 1) try local 2) try global so:
  5739.  
  5740. global foo
  5741. global InBox
  5742.  
  5743. on whatsup()
  5744.         set fred to "test" -- fred's a local
  5745.         local foo -- will use my local because I declared it
  5746.         set foo to "temp" -- does not change global foo
  5747.         set InBox to "changed global" -- we just changed the global
  5748. end
  5749.  
  5750. - john
  5751.  
  5752. -----------------------------------------
  5753. js12@gte.com             GTE Laboratories
  5754. John Schettino                Waltham, MA
  5755. =========================================================================
  5756. Date:         Mon, 8 Aug 1994 15:17:00 -0400
  5757. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5758. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5759. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  5760. Subject:      Re: Getting the front application dilemma
  5761. In-Reply-To:  <no.id> from "Pete Hinely" at Aug 6, 94 08:42:19 am
  5762.  
  5763. --Pete Hinely wrote:
  5764. >
  5765. >I want the name of the appliation that was active right before someone
  5766. >launches my script droplet.  Is there anyway to do this?
  5767.  
  5768.     Well, I thought the Scriptable Finder would help with this, but it
  5769. lists processes in the order that they were launched and not based on
  5770. which is in front of another like it does for disk and folder windows.
  5771. You might be able hack something together using the GTQ Scripting
  5772. Library. There is a switch to launcher OSAX that works really well for
  5773. scripts called from OSA Menu.
  5774.  
  5775. -Hades
  5776. =========================================================================
  5777. Date:         Mon, 8 Aug 1994 13:22:01 -0700
  5778. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5779. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5780. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  5781. Subject:      Re: FileMaker Import Scripts
  5782.  
  5783. >>I'm trying to write a droplet that, when you drag a few text files onto the
  5784. >>icon, they are imported into a FileMaker file through a script in the
  5785. >>FileMaker
  5786. >>file.  How do I do this?  The problem is that the script in FileMaker either
  5787. >>brings up a dialog box asking you to pick the file to import or a file is hard
  5788. >>coded into the script.  It defeats the purpose of writing a droplet in the
  5789. >>first place to sit there while the droplet executes picking files one at a
  5790. >>time.  Does anyone have any ideas on how to do this?  Do I have to wait for
  5791. >>the
  5792. >>scriptable finder?  Then I can probably change the name of the files one at a
  5793. >>time to match the one hard coded into the FileMaker script.
  5794. >
  5795. >What I would do would be to store the contents of the dropped files into an
  5796. >applescript record:
  5797. >ie. set aRecord to {age:12,name:"Mark",address:"hadfield@sickkids.on.ca"}
  5798. >If you don't care about the order in which the data gets put into
  5799. >Filemaker, all you have to do is:
  5800. >        Tell application "Filemaker Pro" to set record 1 to aRecord
  5801. >where record 1 is a blank record.
  5802.  
  5803. Or,
  5804.  
  5805.    create new record with data aRecord
  5806.  
  5807.  
  5808. [In more modern applications, that's "make new record...."]
  5809.  
  5810. --
  5811. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  5812. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  5813. =========================================================================
  5814. Date:         Mon, 8 Aug 1994 17:21:41 -0400
  5815. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5816. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5817. From:         anthony brown <anbrown@HUSC9.HARVARD.EDU>
  5818. Subject:      searhing through an fmpro database using applescript...
  5819.  
  5820. Does anyone know if it is possible to do search through a filemaker pro
  5821. database using applescript w/o having to write a search routine?  I have
  5822. succesfully been able to sort a database by telling filemaker pro to sort
  5823. the database from applescript(ie, use the sort command from the filemaker
  5824. dictionary).
  5825.  
  5826. If it is not possible, is there a way pass a parameter to a filemaker pro
  5827. script so that all I have to do is tell it:
  5828.  
  5829. tell application "filemaker pro"
  5830. do script "mysearch" (I guess the parameters would be listed here)
  5831. end tell
  5832.  
  5833. is it possible to do something like what I am trying to do without
  5834. writing my own search routines, or am I going to have to do it the old
  5835. fashioned way and write a binary search or something?
  5836.  
  5837. Anthony
  5838.  
  5839. *********************************************************************
  5840. *                                                                   *
  5841. *  Anthony Brown, Macintosh Programming Intern, Harvard Universtiy  *
  5842. *                                                                   *
  5843. *  "Classic Rock Music Stations,  The 70's are calling,             *
  5844. *   They want their 8 - Tracks back!"                               *
  5845. *                                                                   *
  5846. *   Dolphin's Rule!! Undefeated 17 - 0  The Perfect Team 1972-73    *
  5847. *                                                                   *
  5848. *********************************************************************
  5849. =========================================================================
  5850. Date:         Mon, 8 Aug 1994 14:45:50 -0800
  5851. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5852. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5853. From:         Brian Hall <mspace@NETCOM.COM>
  5854. Subject:      Re: Eudora 2.1 notification handler
  5855.  
  5856. >Something that would be REALLY useful is a script that would run with
  5857. >MailShare, the Mac POP3 mailserver, to notify users they have mail.
  5858.  
  5859. We have a neat little script we were showing at MacWorld that forwards mail
  5860. to an alphanumeric pager using our new product (PageNOW!). Since we support
  5861. message splitting (sending of messages larger than the usual 99 or so
  5862. characters) you can choose to forward the entire message, or just the
  5863. headers.
  5864.  
  5865. >At the
  5866. >moment, MailShare can work with Notify, but a. it's expensive, and b. it's
  5867. >yet another program that I have to maintain on user's machines. Oh for a
  5868. >nice clean AEVT notification!
  5869.  
  5870. Well it *is* a seperate app (point a), but PageNOW is about half the price
  5871. (point b) - SRP of $79.95 for single user, less for owners of other
  5872. Mark/Space products (our telecom app or CTB tools).
  5873.  
  5874. __________________________________________________________________________
  5875. Mark/Space Softworks                                    voice 408-293-7299
  5876. 111 West Saint John, Suite 230                            fax 408-293-7298
  5877. San Jose, CA 95113                                        bbs 408-293-7290
  5878.  
  5879. Macintosh connectivity software:               Internet: mspace@netcom.com
  5880. Communicate, ZMODEM Tool, PageNOW!               AppleLink, AOL: MARKSPACE
  5881.                   Goodies at ftp.netcom.com in pub/mspace
  5882. =========================================================================
  5883. Date:         Mon, 8 Aug 1994 15:17:52 -0700
  5884. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5885. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5886. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  5887. Subject:      Re: searhing through an fmpro database using applescript...
  5888.  
  5889. >Does anyone know if it is possible to do search through a filemaker pro
  5890. >database using applescript w/o having to write a search routine?  I have
  5891. >succesfully been able to sort a database by telling filemaker pro to sort
  5892. >the database from applescript(ie, use the sort command from the filemaker
  5893. >dictionary).
  5894. >
  5895. >If it is not possible, is there a way pass a parameter to a filemaker pro
  5896. >script so that all I have to do is tell it:
  5897. >
  5898. >tell application "filemaker pro"
  5899. >do script "mysearch" (I guess the parameters would be listed here)
  5900. >end tell
  5901. >
  5902. >is it possible to do something like what I am trying to do without
  5903. >writing my own search routines, or am I going to have to do it the old
  5904. >fashioned way and write a binary search or something?
  5905.  
  5906. the basic but very slow way is
  5907.  
  5908. show records where cell "foo" contains "bar"
  5909.  
  5910. [Clearly, other tests can be done.]
  5911.  
  5912. Much faster is to have a FileMaker script ready made which doesn nothing
  5913. (much) but select the desired records, and run that with do script.  That
  5914. implies you know in advance what they are.  And there are other variations.
  5915.  
  5916. show is slow enough that you will probably want to wrap it in
  5917.  
  5918.    with timeout of 10000 seconds --OK, it's [usually] not THAT slow
  5919.        show ...
  5920.    end timeout
  5921.  
  5922. since the default 3 minute timeout is probably not sufficient.
  5923.  
  5924.    --John
  5925.  
  5926. --
  5927. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  5928. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  5929. =========================================================================
  5930. Date:         Mon, 8 Aug 1994 23:18:49 -0500
  5931. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5932. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5933. From:         Atul Butte <Atul_Butte@BROWN.EDU>
  5934. Subject:      NEW TCP/IP Scripting Addition EXAMPLES!
  5935.  
  5936. You asked for it... now here are three more examples using the TCP/IP
  5937. Scripting Addition.  Two of these samples use FrontMost (a.k.a. FaceSpan).
  5938.  
  5939. The first is a simple Finger client, using FrontMost.  The second is a
  5940. Gopher client, that not only uses FrontMost, but also uses Scriptable Text
  5941. Editor and JPEGview to let you view text and GIF gopher documents.  The
  5942. third sample is a Baby Telnet... it handles the "options negotiation" and
  5943. connects you to a telnet host (up to the "login:" prompt).
  5944.  
  5945. All these samples are in a Compact Pro/Binhex document, around 450K.  Fred
  5946. will probably post when it makes it into the scripts directory.  I hope
  5947. these are helpful for y'all.
  5948.  
  5949. I would like to remind those of you who use the Scripting Addition to
  5950. please read and follow the Licensing Information.  At this point, I have
  5951. still not receive a single DIME for the Scripting Addition... it sort of
  5952. makes it hard to justify putting more work into samples and features.
  5953.  
  5954. Thanks for your support.
  5955.  
  5956. -- Atul
  5957. ----------------------------------------------------------------------
  5958. Atul Butte (MD '95)
  5959. Brown University School of Medicine
  5960.  
  5961. atul_butte@brown.edu
  5962. =========================================================================
  5963. Date:         Mon, 8 Aug 1994 23:53:59 -0500
  5964. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5965. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5966. From:         Fred Terry <pfterry@LKS.CSI.COM>
  5967. Subject:      Atul's tcp/ip scripts
  5968.  
  5969. Folks,
  5970.  
  5971. I just dropped Atul Butte's tcp sample scripts into the scripts directory
  5972. on gaea
  5973.  
  5974. ftp://gaea.kgs.ukans.edu/applescript/scripts/tcp_samples.sea.hqx
  5975.  
  5976. These sample scripts (baby telnet, Finger Client, and Gopher Client)
  5977. require his tcp osax (which you'll find in the osaxen directory).
  5978.  
  5979. That follows are his comments about the scripts. Enjoy.
  5980.  
  5981. pf
  5982.  
  5983.  
  5984. Random Notes on the sample scripts
  5985.  
  5986. 1. These all require the TCP/IP Scripting Addition (version 1.0)
  5987.  
  5988. 2. All the demonstration scripts are Copyright (C) 1994 Atul Butte. All Rights
  5989.  Reserved. However, you may use any AppleScript code from the samples in your
  5990.  own programs.
  5991.  
  5992. 3. The Finger Client is a simple FaceSpan internet finger client. It's pretty
  5993.  self-explanatory once you start it.
  5994.  
  5995. 4. The Gopher Client also uses FaceSpan and is more sophisticated; it requires
  5996.  Scriptable Text Editor and JPEG View. Read the separate note for more details.
  5997.  
  5998. 5. Baby telnet is a Script Editor Script. Give it the name of an internet host
  5999.  (preferably Unix) and it will telnet to that host. It takes care of options
  6000.  negotiation, pretends to be a vt100 terminal connecting to the host, and shows
  6001.  you the login prompt (and disconnects). Use this as a first-step to building
  6002.  your own automated login scripts.
  6003.  
  6004. 6. The baby telnet script keeps running UNTIL it reads a "login:" prompt. Don't
  6005.  use my sample script to connect to hosts that don't have a "login:" prompt!
  6006.  
  6007. 7. The Finger and Gopher clients use FaceSpan (or FrontMost) but they were saved
  6008.  as "complete applications" so you probably don't need the FaceSpan/FrontMost
  6009.  extension in your Extensions folder to run them.
  6010.  
  6011. If you have questions or comments, please mail me at atul_butte@brown.edu
  6012.  
  6013.  
  6014. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  6015. Fred Terry  Cadence Design Systems  pfterry@lks.csi.com  +1 913 841 1283
  6016. =========================================================================
  6017. Date:         Tue, 9 Aug 1994 04:46:47 GMT
  6018. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6019. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6020. From:         Jay Hebert <jayh@LAISON.W8HD.ORG>
  6021. Organization: L'AISON - Beverly Hills, Michigan
  6022. Subject:      SITComm and the window properties?
  6023.  
  6024. When using SITComm, several of my sessions have different font sizes, and
  6025. therefore different screen widths/heights associated with them.  For
  6026. instance, in most of my sessions, I want a 22 line, 80 column screen.  In
  6027. some I use 9pt Monaco, while in others I use 12pt.  When I switch from one to
  6028. the other, the window changes _width_ to reflect the new font size, but not
  6029. height.
  6030.  
  6031. I figured I could write some sort of script dealing with "bounds of window 1"
  6032. to make sure the window is in the state I like it.  However, it doesn't seem
  6033. to include windows as objects with properties - that is to say, the
  6034. dictionary doesn't define window as an object....  Just a script as simple as
  6035.  
  6036. Tell application "SITcomm*"  --* is the option-2 trademark symbol
  6037. bounds of window 1
  6038. end tell
  6039.  
  6040. doesn't work.
  6041.  
  6042. So....  could someone tell me either 1) if I'm wrong, and this can be done or
  6043. 2) that I'm right, so that I can put my two cents in with Aladdin concerning
  6044. this (which this should serve to do, seeing as Leonard reads this list).
  6045.  
  6046. For clarity, I _really_ enjoy SITcomm, so don't take this wrong.  =)
  6047.  
  6048. Regards, and thanks,
  6049. Jay
  6050. --
  6051.  
  6052. ==========================jayh@laison.w8hd.org=========================
  6053.   Metallica,||   When a man lies he murders / Some part of the world
  6054.    To Live  ||These are the pale deaths which / Men miscall their lives
  6055.      is     ||     All this I cannot bear / To witness any longer
  6056.    To Die   ||     Cannot the kingdom of salvation / Take me home
  6057. =======================================================================
  6058. 1)  These opinions are mine.-==- 2)  Sending me mail gives me
  6059. I'm too self-interested to  -==- permission to reproduce it in any form
  6060. speak for anyone else.      -==- unless otherwise explicitly stated.
  6061. =========================================================================
  6062. Date:         Tue, 9 Aug 1994 08:49:14 -0400
  6063. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6064. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6065. From:         Frank Lowney <flowney@MAIL.GAC.PEACHNET.EDU>
  6066. Subject:      Re: NEW TCP/IP Scripting Addition EXAMPLES!
  6067.  
  6068. >I would like to remind those of you who use the Scripting Addition to
  6069. >please read and follow the Licensing Information.  At this point, I have
  6070. >still not receive a single DIME for the Scripting Addition... it sort of
  6071. >makes it hard to justify putting more work into samples and features.
  6072. >
  6073. I have offered to pay you for POP3 e-mail client scripts as well as license
  6074. the osax, are you considering this?  All I need from you at this point is
  6075. your estimated fee for the whole package.  This would be a non-exclusive
  6076. arrangement meaning that you could release the POP3 scripts as a further
  6077. example of how to use the TCP/IP osax.  In fact, I would encourage that.
  6078.  
  6079. You would also have our OK to cite our system as a living example that
  6080. could be checked out.  We can be telnetted to at: gcedunet.peachnet.edu
  6081. The only "gotcha" here is that our terminal server has a hard-wired packet
  6082. TTL (time to live) characteristic that is too short for some connections
  6083. (i.e. California) where there are too many hops (routers, bridges, etc.) to
  6084. navigate within the TTL parameter.  If I get the funding to expand to 16
  6085. ports, this will be fixed with a new terminal server.
  6086.  
  6087. We are a non-profit service seeking to provide the Georgia K-12 education
  6088. community with no-cost access to electronic information and communications
  6089. opportunities.  Your TCP/IP osax will make it possible for us to provide a
  6090. measure (albeit TTY) of Internet access (beginning with e-mail and gopher)
  6091. to this largely "modem-bound" population.  At present we are able to
  6092. support 10 simultaneous users.  In other words, we would have 10 copies of
  6093. the TCP/IP osax in operation at any one time.
  6094.  
  6095. I may need a little help in adapting your work to our HyperCard
  6096. environment, something I have already started to do with your SendMail
  6097. example.  Please factor this into your thinking as well.
  6098.  
  6099. I look forward to hearing from you.
  6100.  
  6101. *********************************************************************
  6102. Dr. Frank Lowney, Director, Regional Teacher Education Center
  6103.                   System Administrator, The GC EduNET Project
  6104. CBX 034, School of Education
  6105. Georgia College, Milledgeville, GA 31061-0490
  6106. Voice: (912) 453-5121
  6107. via GC EduNET, Georgia's Statewide K-12 Education Network, telnet to:
  6108.         gcedunet.peachnet.edu
  6109. *********************************************************************
  6110. =========================================================================
  6111. Date:         Tue, 9 Aug 1994 14:54:42 +0100
  6112. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6113. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6114. From:         Judith Kertisz SUCHARD <suchard@CNAM.FR>
  6115. Subject:      Re: passing data to hyperCard
  6116.  
  6117. If parameter does not accept it, field either (I heard now limit is 32K)
  6118. then why not dump it as text? It is not 'elegant' but it should work.
  6119.  
  6120.  
  6121. Chaleureusement,
  6122.  
  6123. Judith
  6124. _________________________________________
  6125. Judith Kertisz Suchard                  suchard@cnam.cnam.fr
  6126. C.N.A.M. Labo Informatique             AppleLink: cnam
  6127. 25, rue Mont Cenis                         Tel:(1) 40 27 25 57
  6128. 75018 Paris, France                     Fax: 40 27 27 72
  6129. _________________________________________
  6130. "La simpliciti, c'est le fruit d'un long effort"
  6131. =========================================================================
  6132. Date:         Tue, 9 Aug 1994 07:34:09 -0800
  6133. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6134. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6135. From:         Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU>
  6136. Subject:      Re: FaceSpan and AppleScript Developer's Kit 1.1
  6137.  
  6138. --part_AA6CE1F0003D4F3C00000002
  6139. Content-Type: Text/Plain; charset=US-ASCII
  6140.  
  6141. > One problem with the current FaceSpan:  there is a large memory leak
  6142. > every time a FaceSpan freestanding application starts up and is
  6143. > quit.  (200K or so).
  6144. >
  6145. > There is a much smaller leak each time one of the mini-apps (the
  6146. > ones needing the runtime extension) starts and quits.
  6147. >
  6148. > The workaround is:  if it hurts, don't do it.  That is...don't plan
  6149. > on starting one of these things up over and over...start it and leave
  6150. > it running.
  6151. >
  6152. >    --John
  6153.  
  6154. Is this something that is going to be fixed in the next couple months? I would
  6155. like to use FaceSpan for a script I'm distributing to our clients. The
  6156. computers have to run pretty much unattended since most of our clients are
  6157. very much novices. A memory leak would kill us there.
  6158.  
  6159. Greg Francis
  6160.  
  6161.  
  6162. --part_AA6CE1F0003D4F3C00000002
  6163. Content-Type: Text/Plain; charset=US-ASCII
  6164. Content-Disposition: Inline
  6165.  
  6166. --------------------------------------------------------------------------
  6167. Greg Francis                | STEP/Star Schools Project
  6168. Research and Development    | Educational Service District 101, Spokane WA
  6169. Technical Support Staff     | Bringing the best in K-12 distance education
  6170. gfrancis@esdtcom.wednet.edu | to remote schools across the United States.
  6171. --part_AA6CE1F0003D4F3C00000002--
  6172. =========================================================================
  6173. Date:         Tue, 9 Aug 1994 07:39:17 -0800
  6174. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6175. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6176. From:         Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU>
  6177. Subject:      Re: FaceSpan and AppleScript Developer's Kit 1.1
  6178.  
  6179. --part_AA6CE325003D97F300000004
  6180. Content-Type: Text/Plain; charset=US-ASCII
  6181.  
  6182. > Then again, I may be showing my lack of familiarity with the niche AS
  6183. > has found -- are most people using it for private applications,
  6184. > or business applications? I'm using it for both, though most of the
  6185. > time is spent hacking it for my private pleasure (though it helps
  6186. > my company) ...
  6187. >
  6188. > -roy
  6189.  
  6190. We're using AS here to automate sending files from remote schools to a central
  6191. location. Using AS, we're able to reduce a task from about 13 steps down to a
  6192. single step. Plus, it ensures that things are archived on the sending side
  6193. properly. Many of our users are very much novices with computers so AS will be
  6194. a major plus for us.
  6195.  
  6196. Greg
  6197.  
  6198. --part_AA6CE325003D97F300000004
  6199. Content-Type: Text/Plain; charset=US-ASCII
  6200. Content-Disposition: Inline
  6201.  
  6202. --------------------------------------------------------------------------
  6203. Greg Francis                | STEP/Star Schools Project
  6204. Research and Development    | Educational Service District 101, Spokane WA
  6205. Technical Support Staff     | Bringing the best in K-12 distance education
  6206. gfrancis@esdtcom.wednet.edu | to remote schools across the United States.
  6207. --part_AA6CE325003D97F300000004--
  6208. =========================================================================
  6209. Date:         Tue, 9 Aug 1994 10:42:11 -0400
  6210. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6211. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6212. From:         Frank Lowney <flowney@GC3.GAC.PEACHNET.EDU>
  6213. Subject:      passing data to apps
  6214.  
  6215. I'm still trying to find a way to pass big (> 30K) chunks of data from
  6216. AppleScript to applications such as HyperCard.  As I look at the HC
  6217. dictionary it does cite:
  6218.  
  6219. Class variable:  A HyperTalk variable
  6220. Properties:
  6221.         class type class [r/o] -- The class
  6222.         name character [r/o] -- The name
  6223.  
  6224. ...but I want to set a variable, not read it.
  6225.  
  6226. I suppose that I could write a text file to disk with AS and then read it
  6227. into a HC global but the performance hit would be unacceptable.  It seems
  6228. so inelegant to me not to have a more direct way (w/o resort to disk access
  6229. and limited only by available memory) to share data in the case of an
  6230. attachable application such as HyperCard.
  6231.  
  6232.  
  6233. *********************************************************************
  6234. Dr. Frank Lowney, Director, Regional Teacher Education Center
  6235.                   System Administrator, The GC EduNET Project
  6236. CBX 034, School of Education
  6237. Georgia College, Milledgeville, GA 31061-0490
  6238. Voice: (912) 453-5121
  6239. via GC EduNET, Georgia's Statewide K-12 Education Network, telnet to:
  6240.         gcedunet.peachnet.edu
  6241. *********************************************************************
  6242. =========================================================================
  6243. Date:         Tue, 9 Aug 1994 09:56:21 -0500
  6244. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6245. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6246. From:         Brett Watson <brett@SCCSI.COM>
  6247. Subject:      REMOVE USER!
  6248.  
  6249.   Forgive me for wasting everyone's time but the list maintainer seems
  6250. to ignore bounced mail as well as pleas for help.
  6251.  
  6252.   I need a user at my site removed from the list:
  6253.  
  6254.   tjohnston@nuchat.sccsi.com  (the user no longer lives here)
  6255.  
  6256.   I would appreciate it if anyone here could get this to the
  6257. appropriate person.  I can't seem to find who that is.  Thanks!
  6258.  
  6259. -brett
  6260.  
  6261. --
  6262. Brett Watson            South Coast Computing Services, Inc
  6263. (713) 917-5000          1811 Bering, Suite 100  Houston, TX 77057
  6264. =========================================================================
  6265. Date:         Tue, 9 Aug 1994 09:37:20 -0800
  6266. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6267. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6268. From:         Peter Speck <speck@INTERVAL.COM>
  6269. Subject:      Re: passing data to apps
  6270.  
  6271. >I'm still trying to find a way to pass big (> 30K) chunks of data from
  6272. >AppleScript to applications such as HyperCard.  As I look at the HC
  6273. >dictionary it does cite:
  6274. >
  6275. >Class variable:  A HyperTalk variable
  6276. >Properties:
  6277. >        class type class [r/o] -- The class
  6278. >        name character [r/o] -- The name
  6279. >
  6280. >...but I want to set a variable, not read it.
  6281.  
  6282.  
  6283. Here you are:
  6284.  
  6285. on mouseUp
  6286.         copy ((the first item of (list disks)) & ":") to diskName
  6287.         copy "Untitled.GIF" to filename
  6288.  
  6289.         -- the easiest way to create variables!
  6290.         do script "global GIFTempDiskName,GIFTempFileName"
  6291.  
  6292.         copy diskName to variable "GIFTempDiskName"
  6293.         copy "Untitled.GIF" to variable "GIFTempFileName"
  6294. end mouseUp
  6295.  
  6296.  
  6297. This is an AppleScript within HyperCard (instead of a HyperTalk script).
  6298.  
  6299. ---
  6300.                                       (And it was eleven o'clock
  6301.                                        which was time for a little
  6302. something)
  6303. =========================================================================
  6304. Date:         Tue, 9 Aug 1994 11:37:46 -0600
  6305. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6306. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6307. From:         Frank Concannon <frank-concannon@UOKHSC.EDU>
  6308.  
  6309. OK guys
  6310.  
  6311. I have been banging on this for about 24 hrs and I'm stuck!
  6312.  
  6313. here is the script
  6314.  
  6315. ---------------------------------------------------
  6316.  
  6317. set thisDisc to (text item 1 of (list disks) & ":")
  6318. set thisDiscTrash to thisDisc & "Trash:" as string
  6319. set thisDiscFinder to thisDisc & "System Folder:Finder" as string
  6320. set thisDiscSysFol to thisDisc & "System Folder:" as string
  6321.  
  6322.  
  6323. tell application "Finder"
  6324.         move to alias thisDiscTrash from {alias thisDiscFinder}
  6325.         move to alias thisDiscTrash from {alias thisDiscSysFol}
  6326.         copy to alias discVar from {alias "R&E Server:Mac Lab:Sys
  6327. Soft:System Folder:"}
  6328. end tell
  6329.  
  6330. -------------------------------------------------
  6331.  
  6332. What it is supposed to do:
  6333.  
  6334. when run on any Mac in our lab it will move the System Folder to the trash
  6335. and copy in a new one. (It is part of a much grander scheme so is not as
  6336. bizzare as it looks in isolation)
  6337.  
  6338. What it is not doing:
  6339.  
  6340. It is failing at the tell "Finder" nest
  6341. As outlined above it does not work, however if I substitute actual
  6342. pathnames instead of variables it works fine.
  6343.  
  6344. The event Log shows the variables defined (thisDiscTrash etc) all contain
  6345. the correct path information.
  6346.  
  6347. I have a feeling that the solution is obvious but if you could humour me I
  6348. wont do it again!
  6349.  
  6350.  
  6351. Frank C.
  6352. R&E
  6353. =========================================================================
  6354. Date:         Tue, 9 Aug 1994 17:52:01 GMT
  6355. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6356. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6357. From:         Paul G Smith <paul@CTALK.EXNET.COM>
  6358. Organization: commstalk, & Full Moon Software Inc
  6359. Subject:      Re: ScriptWizard Freeze
  6360.  
  6361. In Regards to your letter <199408091628.JAA10526@netcom13.netcom.com>:
  6362. > >I posted the following to MACSCRPT and received no replies (yet) so I
  6363. > >thought I'd go right to the source.
  6364. > >
  6365. > >I've been trying out the ScriptWizard Demo. I'm very impressed and
  6366. > >considering ordering it before the current special ends (end of the month, I
  6367. > >think).
  6368. > >
  6369. > >However... every time I try to do a find on a script I get some sort of
  6370.  serious
  6371. > >system error. No error message, just a complete freeze of the Mac. Can't get
  6372. > >to MacsBug, can't force quit, the only alternative is to restart. I tried
  6373.  this
  6374. > >with most extensions off (except AS, of course) and still got the freeze.
  6375. > >
  6376. > >Is this a known problem (hopefully) with the demo? Will the real ScriptWizard
  6377. > >work just fine?
  6378. > >
  6379. > >Peter Fleck
  6380. > >fleck@astro.spa.umn.edu
  6381.  
  6382.  
  6383. Peter:
  6384.  
  6385. This bug is supposed to be fixed by the 1.0.1fc1 update, which we have
  6386. posted on gaea for downloading via FTP.
  6387.  
  6388. However, while demonstrating SW at MacWorld in Boston, we did see it
  6389. fail just once during a Find, although we were unable to reproduce the
  6390. failure afterwards. We will be doing more tests this week, to be sure.
  6391. If any SW user has seen this happen with a patched 1.0.1 copy of SW
  6392. please let us know; otherwise I think we can safely say that 1.0.1 will
  6393. solve the problem for you.
  6394.  
  6395. (ftp://gaea.kgs.ukans.edu/applescript/demos/SW1.01fc1.sit.hqx)
  6396.  
  6397.  
  6398. best regards, Paul
  6399.  
  6400. --------------------------------------------------------------------
  6401. Paul G Smith, Full Moon Software           ||  UK ph: +44 727 844232
  6402. PO Box 116, ST ALBANS, Herts. AL1 2RL. UK  ||    fax: +44 727 856139
  6403. & Full Moon Software, Inc                  ||  US ph: 408 253 7199
  6404. P O Box 700237, SAN JOSE, CA 95170         ||    fax: 408 252 2378
  6405. =========================================================================
  6406. Date:         Tue, 9 Aug 1994 10:56:21 -0700
  6407. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6408. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6409. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  6410. Subject:      Re: passing data to apps
  6411.  
  6412. >I'm still trying to find a way to pass big (> 30K) chunks of data from
  6413. >AppleScript to applications such as HyperCard.  As I look at the HC
  6414. >dictionary it does cite:
  6415. >
  6416. >Class variable:  A HyperTalk variable
  6417. >Properties:
  6418. >        class type class [r/o] -- The class
  6419. >        name character [r/o] -- The name
  6420. >
  6421. >...but I want to set a variable, not read it.
  6422.  
  6423. All you have to do is set the variable:
  6424.  
  6425. I used the HyperCard message box to create a global variable named Test,
  6426. and put a recognizable (and very clever:  "This is a test.") value into it.
  6427.  
  6428. Then I ran:
  6429.  
  6430. tell application "HyperCard"
  6431.     get variable "Test"
  6432. end tell
  6433.  
  6434. which correctly returned "This is a test."
  6435.  
  6436. Then I ran this:
  6437.  
  6438. tell application "HyperCard"
  6439.     set variable "Test" to ((get variable "Test") & "  This is some more test.")
  6440.     set variable "Test2" to "Here we go again"
  6441. end tell
  6442.  
  6443.  
  6444. and used the message box in HC to look at globals test and test2.  Both had
  6445. the values I expected.
  6446.  
  6447.    --John
  6448.  
  6449. --
  6450. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  6451. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  6452. =========================================================================
  6453. Date:         Tue, 9 Aug 1994 15:55:21 -0400
  6454. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6455. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6456. From:         Kiran Wagle <groo@NETCOM.COM>
  6457. Subject:      Eudora 2.1 notification again
  6458.  
  6459. A few things Steve Dorner has said make me wonder if it's possible to write
  6460. _AppleScript_ handlers for the 2.1 notification events AT ALL.  (He says it
  6461. works fine in Frontier.)  Since 2.1 is in LATE beta, if there's a problem
  6462. with notices I'd like to catch it before the release if I can. If anyone
  6463. has handlers for 2.1 or 1.4.3 that are known to work, PLEASE send them to
  6464. me.  Heck, send me ANY event handlers, so I can meditate upont them....
  6465.  
  6466. Here's the supposed syntax of the events, from the 2.1b35 dictionary; if
  6467. anyone has a good guess as to what handlers should look like, please send
  6468. those too.
  6469.  
  6470. start notifying: Notify an application of things that happen
  6471.         start notifying  reference  -- an application to notify
  6472.                 [when  mail arrives/mail sent/will connect/has connected]
  6473.                 --what to notify the application of
  6474.  
  6475. stop notifying: Stop notifying applications of things that are happening
  6476.         stop notifying  reference  -- an application currently being notified
  6477.                 [when  mail arrives/mail sent/will connect/has connected]
  6478.                 --the things no longer to notify it of
  6479.  
  6480. notice: Eudora sends this event to notify an application that something happened
  6481.         notice
  6482.                 [occurrence  mail arrives/mail sent/will connect/has connected]
  6483.                 --what happened
  6484.                 [messages  list]
  6485.                 -- of the messages involved
  6486.  
  6487. Many thanks in advance.
  6488.  
  6489. ~ Kiran
  6490.  
  6491. --
  6492. 6216 41st Avenue Hyattsville MD 20782 301/779-0756 <groo@netcom.com>
  6493. =========================================================================
  6494. Date:         Tue, 9 Aug 1994 13:39:48 -0700
  6495. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6496. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6497. From:         Mike Shaff <shaff@QUILTY.STANFORD.EDU>
  6498. Subject:      Dealing with unaware applications
  6499.  
  6500. Greetings,
  6501.  
  6502. Some collegues are looking build a library kiosk on a Macintosh.  The stations
  6503. would have network applications (MacSamson, Mosaic, gopher, webster, etc)
  6504. available for use by students.  One of their objectives is to be able to have a
  6505. piece of software that looks for a long period of inactivity, puts a dialog box
  6506. on the screen warning the user, then does an automatic shutdown of all open
  6507. applications, returning the system to a standardized starting point for the
  6508. next user who comes along.
  6509.  
  6510. This raises the question of how to deal with AS unaware applications.
  6511. Applications, such as Stanford's MacSamson, often present dialogs when exiting.
  6512. AppleScript aware applications, as I understand it, should understand, "without
  6513. questions."  But, how does one deal with the others?  Unfortunately AS unaware
  6514. application are still the majority.
  6515.  
  6516. Anyone?
  6517.  
  6518. I would be interested in talking with anyone on the list that is looking at
  6519. kiosk issues (I would imagine the discussion would not involve directly this
  6520. group).
  6521.  
  6522. Thanks,
  6523.  
  6524. Michael
  6525. =========================================================================
  6526. Date:         Tue, 9 Aug 1994 16:39:13 -0600
  6527. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6528. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6529. From:         Frank Concannon <frank-concannon@UOKHSC.EDU>
  6530. Subject:      Re: Dealing with unaware applications
  6531.  
  6532. >Greetings,
  6533. >
  6534. >Some collegues are looking build a library kiosk on a Macintosh.  The stations
  6535. >would have network applications (MacSamson, Mosaic, gopher, webster, etc)
  6536. >available for use by students.  One of their objectives is to be able to have a
  6537. >piece of software that looks for a long period of inactivity, puts a dialog box
  6538. >on the screen warning the user, then does an automatic shutdown of all open
  6539. >applications, returning the system to a standardized starting point for the
  6540. >next user who comes along.
  6541. >
  6542. >This raises the question of how to deal with AS unaware applications.
  6543. >Applications, such as Stanford's MacSamson, often present dialogs when exiting.
  6544. >AppleScript aware applications, as I understand it, should understand, "without
  6545. >questions."  But, how does one deal with the others?  Unfortunately AS unaware
  6546. >application are still the majority.
  6547. >
  6548. >Anyone?
  6549. >
  6550. >I would be interested in talking with anyone on the list that is looking at
  6551. >kiosk issues (I would imagine the discussion would not involve directly this
  6552. >group).
  6553. >
  6554. >Thanks,
  6555. >
  6556. >Michael
  6557.  
  6558.  
  6559. Cron
  6560.  
  6561. Frank C.
  6562. R&E
  6563. =========================================================================
  6564. Date:         Tue, 9 Aug 1994 18:24:38 -0400
  6565. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6566. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6567. From:         Kiran Wagle <groo@NETCOM.COM>
  6568. Subject:      Major memory leak
  6569.  
  6570. I seem to have an applet, a very simple script that runs at startup and
  6571. tells Eudora to check mail, and leaves behind a mere 4-500K (that's not a
  6572. typo) in my system heap.  When I bumped its memory allocation down, it
  6573. grumbled that it couldn't run due to insufficient memory, but it does this
  6574. when running in 200K.
  6575.  
  6576. Anyone have a clue as to what's going on here?
  6577.  
  6578. I have three other scripts that I run from OSA Menu, and none of them show
  6579. this behavior.  (When I'm using the script editor, I see about 800K in the
  6580. system heap, btw, but it goes away on quit.)
  6581.  
  6582. The script in question is TOO trivial to include in this post!
  6583. But I will anyway.
  6584.  
  6585. tell application "Eudora2.1b35"
  6586.         with timeout of 600 seconds
  6587.                 activate
  6588.                 connect with sending and checking
  6589.                 open mailbox "In"
  6590.         end timeout
  6591. end tell
  6592.  
  6593. This version is shorter than the original by a couple of sets, three
  6594. closes, and a try, but it still has the same problem.  I'm running it via
  6595. an alias in my startup items folder.
  6596.  
  6597. ~ Kiran <groo@netcom.com>
  6598.  
  6599. --
  6600. 6216 41st Avenue Hyattsville MD 20782 301/779-0756 <groo@netcom.com>
  6601. =========================================================================
  6602. Date:         Tue, 9 Aug 1994 16:37:32 -0800
  6603. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6604. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6605. From:         Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
  6606. Subject:      eudora 2.0.3 vs 1.4.x
  6607.  
  6608. I just purchased and installed the commercial version of eudora. Why pay
  6609. money for the commercial version?
  6610.  
  6611. I thought I'd have a look at it and frankly, I really like the filters. It
  6612. is trivial to have eudora 2.0.3 sort incoming mail and group mail from
  6613. various mailing lists together into separate mail folders. Also, eudora
  6614. 2.0.3 can sort the mail based upon a variety of attributes, I use by
  6615. Subject. Thus, when I finally get around to reading through all the
  6616. MacScripting messages on some topic, they are all grouped together
  6617. sequentially by topic. Also, since I do not do Frontier, I have it
  6618. automatically delete MacScripting messages that have frontier in the
  6619. subject heading.
  6620.  
  6621. Yes I could do all this with AppleScript but frankly, the time it would
  6622. take me to build this nice of a sort front end is worth more than the cost
  6623. of the commercial version. I recommend it if you are still using the
  6624. shareware version. It's very nice.
  6625.  
  6626. My opinion,
  6627. Kee Nethery
  6628.  
  6629. _________________________________________________________________
  6630. Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
  6631. =========================================================================
  6632. Date:         Tue, 9 Aug 1994 23:17:19 EDT
  6633. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6634. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6635. From:         Danny Goodman <DGoodman@AOL.COM>
  6636. Subject:      Frontmost application
  6637.  
  6638. I don't recall if the thread about determining the frontmost application with
  6639. scriptable Finder was resolved successfully.  In any case, here is syntax
  6640. that will give you the frontmost app:
  6641.  
  6642. tell application "Finder"
  6643.  processes whose frontmost is true
  6644. end tell
  6645.  
  6646. Love them "whose" clauses.
  6647.  
  6648. Danny Goodman
  6649. =========================================================================
  6650. Date:         Wed, 10 Aug 1994 17:15:00 +1200
  6651. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6652. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6653. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  6654.               NZ" <LDO@WAIKATO.AC.NZ>
  6655. Subject:      Re: Can't write new script! (not)
  6656.  
  6657. "John W. Baxter" <jwbaxter@OLYMPUS.NET> writes:
  6658.  
  6659. >>I'm guessing that somehow, because I had just tried out Frontier Runtime
  6660. >>but was no longer running it, there was a blank choice selected as the
  6661. >>default scripting language.
  6662. >
  6663. >It's an interesting feature of Script Editor.  I can't say it's wrong,
  6664. >since it makes sense that someone would want to work in the same language
  6665. >most of the time.
  6666.  
  6667. The bug is that the previously-chosen scripting component may no longer be
  6668. valid, because the user has deinstalled it (as happened in this case). The
  6669. Script Editor really needs to check for this case.
  6670.  
  6671. The main thing that annoys me is that I always want AppleScript to be my
  6672. default scripting language, even though I sometimes want to use QuicKeys
  6673. Script. However, the Script Editor keeps insisting on defaulting to the
  6674. language I used last. Here's a semi-useful thing you might want to try: in
  6675. your Preferences folder, you will find a file called "AppleScript Preferences"
  6676. which, contrary to its name, is only used by the Script Editor. Open this
  6677. with ResEdit. Inside is a number of resources, in particular one of type
  6678. "Comp". This contains the four-byte type code for your last-chosen scripting
  6679. component. Change its contents to the code for your preferred component,
  6680. if necessary (eg "ascr" for AppleScript). Now do a Get Info on the resource,
  6681. and set the Protected bit. Save your changes and close the file.
  6682.  
  6683. Now each time you run the Script Editor, each new window will, unfortunately,
  6684. continue defaulting to the scripting component you chose in the previous
  6685. window. However, when you quit the Script Editor, you will get the error
  6686. message "could not update the preferences file because of a program error".
  6687. Then when you next start it up again, the default will revert back to the
  6688. one you wanted.
  6689.  
  6690. It's an imperfect workaround, but what the hey...
  6691.  
  6692. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  6693. Info & Tech Services Division              fax: +64-7-838-4066
  6694. University of Waikato            electric mail: ldo@waikato.ac.nz
  6695. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  6696. =========================================================================
  6697. Date:         Tue, 9 Aug 1994 22:47:32 -0700
  6698. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6699. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6700. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  6701. Subject:      Re: Frontmost application
  6702.  
  6703. At 23:17 8/9/94 -0400, Danny Goodman wrote:
  6704. >I don't recall if the thread about determining the frontmost application with
  6705. >scriptable Finder was resolved successfully.  In any case, here is syntax
  6706. >that will give you the frontmost app:
  6707. >
  6708. >tell application "Finder"
  6709. > processes whose frontmost is true
  6710. >end tell
  6711. >
  6712. >Love them "whose" clauses.
  6713.  
  6714. Cavaet:  if you get back an empty list, Finder (or something else lurking
  6715. the System, as seen in the About This Macintosh window) is in front.  Try
  6716. this:
  6717.  
  6718. tell application "Finder"
  6719.     activate
  6720.     processes whose frontmost is true
  6721. end tell
  6722.  
  6723.    --John
  6724.  
  6725. --
  6726. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  6727. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  6728. =========================================================================
  6729. Date:         Wed, 10 Aug 1994 17:48:00 +1200
  6730. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6731. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6732. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  6733.               NZ" <LDO@WAIKATO.AC.NZ>
  6734. Subject:      Re: Sender's address
  6735.  
  6736. Tero Loimuneva <Tero.Loimuneva@TH.TELE.FI> writes:
  6737.  
  6738. >--Lawrence
  6739. >>If you had
  6740. >>an osax that called AEGetTheCurrentEvent, and you invoked this from within
  6741. >>a script handler, would you get a copy of the event currently being handled?
  6742. >
  6743. >I thought of the osax too but does the osax get ANYTHING about the original
  6744. >AppleEvent sent to the whole handler - I doupt.
  6745.  
  6746. I suspect you are right. Before opening my mouth, I didn't think through the
  6747. fact that osaxes are invoked as AppleEvent handlers themselves, so a call
  6748. to AEGetTheCurrentEvent from within an osax would always return the event
  6749. that invoked the osax!
  6750.  
  6751. When AppleScript 1.0 came out, one of the first things I wished for, after
  6752. using HyperCard for so long, was callbacks. Imagine if the scripting component
  6753. passed the script context along with its own component instance as parameters
  6754. of each AppleEvent it sends, or there was a special address you could send
  6755. AppleEvents to, or something. What sort of things would you want to do with
  6756. callbacks from an osax? You could:
  6757.  
  6758. * ask AppleScript to spin its cursor (and give time to other applications)
  6759. while you were performing a time-consuming operation. It could even return a
  6760. code to you if the user hit command-dot, so you could abort what you were doing.
  6761.  
  6762. * get and set the values of variables--both those local to currently-executing
  6763. handlers, and global ones.
  6764.  
  6765. * invoke handlers and evaluate general expressions within the same script
  6766. context.
  6767.  
  6768. * trace through the chain of currently-active handlers and events (useful
  6769. for debugging, as well as for solving the problem that prompted this thread!).
  6770.  
  6771. Basically, these things allow your osax to look very much as though it was
  6772. just another handler within the script. HyperCard provides similar callback
  6773. functionality to its externals, and again, this allows very close integration
  6774. between those externals and HyperTalk code.
  6775.  
  6776. Another thing I'd like to see is some way of dynamically synthesizing a
  6777. script object from a program--really, a form of AEInstallEventHandler that
  6778. let you install a handler into a specific script object. The program could
  6779. then pass the script object to another program, to provide an inter-program
  6780. callback facility via AppleEvents. Of course, what happens when you try to
  6781. pass such a script object across the network is another issue.
  6782.  
  6783. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  6784. Info & Tech Services Division              fax: +64-7-838-4066
  6785. University of Waikato            electric mail: ldo@waikato.ac.nz
  6786. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  6787. =========================================================================
  6788. Date:         Tue, 9 Aug 1994 22:46:33 -0800
  6789. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6790. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6791. From:         Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
  6792. Subject:      Re: How does AS know which osax to use?
  6793.  
  6794. I encountered this problem where two osax had the same command but
  6795. different parameters. I solved the problem with the following kind of
  6796. arrangement. I forget whether I had to give the document path or not but
  6797. this did allow me to specify which osax was to receive the command.
  6798.  
  6799. tell document <name of osax here>
  6800.     blah blah blah
  6801. end tell
  6802.  
  6803. Kee Nethery
  6804.  
  6805. _________________________________________________________________
  6806. Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
  6807. =========================================================================
  6808. Date:         Wed, 10 Aug 1994 03:24:02 -0800
  6809. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6810. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6811. From:         David Lewis <lewis@NETCOM.COM>
  6812. Subject:      Re: Dealing with unaware applications
  6813.  
  6814. >Greetings,
  6815. >
  6816. >Some collegues are looking build a library kiosk on a Macintosh.  The stations
  6817. >would have network applications (MacSamson, Mosaic, gopher, webster, etc)
  6818. >available for use by students.  One of their objectives is to be able to have a
  6819. >piece of software that looks for a long period of inactivity, puts a dialog box
  6820. >on the screen warning the user, then does an automatic shutdown of all open
  6821. >applications, returning the system to a standardized starting point for the
  6822. >next user who comes along.
  6823. >
  6824. >This raises the question of how to deal with AS unaware applications.
  6825. >Applications, such as Stanford's MacSamson, often present dialogs when exiting.
  6826. >AppleScript aware applications, as I understand it, should understand, "without
  6827. >questions."  But, how does one deal with the others?  Unfortunately AS unaware
  6828. >application are still the majority.
  6829. >
  6830. >Anyone?
  6831. >
  6832. >I would be interested in talking with anyone on the list that is looking at
  6833. >kiosk issues (I would imagine the discussion would not involve directly this
  6834. >group).
  6835. >
  6836. >Thanks,
  6837. >
  6838. >Michael
  6839.  
  6840. For the timing, you could use the Frontier idle-time extension. Frontier
  6841. isn't required; the extension installs a gestalt selector which allows you
  6842. to query the idle time.
  6843.  
  6844. For dealing with un-aware applications, I think you can easily make
  6845. KeyQuencer do what you want. It's the best US$10 you'll ever spend!
  6846.  
  6847.         David
  6848.  
  6849. David Lewis     Seagate Technology      (408) 439-2374  lewis@netcom.com
  6850. =========================================================================
  6851. Date:         Wed, 10 Aug 1994 07:56:46 -0400
  6852. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6853. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6854. From:         Frank Lowney <flowney@MAIL.GAC.PEACHNET.EDU>
  6855. Subject:      Re: passing data to apps
  6856.  
  6857. Thank you. Thank you.
  6858.  
  6859. I was able to adapt your example to my purposes and it seems to work quite
  6860. well.
  6861.  
  6862. >Here you are:
  6863. >
  6864. >on mouseUp
  6865. >        copy ((the first item of (list disks)) & ":") to diskName
  6866. >        copy "Untitled.GIF" to filename
  6867. >
  6868. >        -- the easiest way to create variables!
  6869. >        do script "global GIFTempDiskName,GIFTempFileName"
  6870. >
  6871. >        copy diskName to variable "GIFTempDiskName"
  6872. >        copy "Untitled.GIF" to variable "GIFTempFileName"
  6873. >end mouseUp
  6874. >
  6875. >
  6876. >This is an AppleScript within HyperCard (instead of a HyperTalk script).
  6877. >
  6878. >---
  6879. >                                      (And it was eleven o'clock
  6880. >                                       which was time for a little
  6881. >something)
  6882.  
  6883. *********************************************************************
  6884. Dr. Frank Lowney, Director, Regional Teacher Education Center
  6885.                   System Administrator, The GC EduNET Project
  6886. CBX 034, School of Education
  6887. Georgia College, Milledgeville, GA 31061-0490
  6888. Voice: (912) 453-5121
  6889. via GC EduNET, Georgia's Statewide K-12 Education Network, telnet to:
  6890.         gcedunet.peachnet.edu
  6891. *********************************************************************
  6892. =========================================================================
  6893. Date:         Wed, 10 Aug 1994 08:52:03 -0400
  6894. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6895. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6896. From:         "Steven L. Rohall" <slrohall@TASC.COM>
  6897. Subject:      Re: Eudora 2.1 notification again
  6898.  
  6899. At  3:55 PM 8/9/94 -0400, you wrote:
  6900. ...
  6901. >
  6902. >Here's the supposed syntax of the events, from the 2.1b35 dictionary; if
  6903. >anyone has a good guess as to what handlers should look like, please send
  6904. >those too.
  6905. >
  6906. ...
  6907.  
  6908. I don't have any scripts to send you.  I tried to use notification once,
  6909. but discovered that 2.0.x would not do its own filtering if you had
  6910. notification turned on.  All I wanted to do was count incoming messages and
  6911. let Eudora continue to filter them.  Perhaps there should be a switch on
  6912. the notification request as to whether or not you want Eudora to do its own
  6913. filtering?
  6914.  
  6915.                                 -Steve.
  6916. =========================================================================
  6917. Date:         Wed, 10 Aug 1994 09:44:22 EDT
  6918. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6919. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6920. From:         Danny Goodman <DGoodman@AOL.COM>
  6921. Subject:      Re: Frontmost application
  6922.  
  6923. >Cavaet:  if you get back an empty list, Finder (or something else lurking
  6924. >the System, as seen in the About This Macintosh window) is in front.
  6925.  
  6926. Interesting, and inconsistent (what else is new!).  So the Finder is an
  6927. application, but not a process.  Well, then perhaps if the "processes whose
  6928. frontmost is true" statement returns empty, then you know to use Finder
  6929. commands to figure out which window is on top. YAW(orkaround).
  6930.  
  6931. Danny Goodman
  6932. =========================================================================
  6933. Date:         Wed, 10 Aug 1994 10:33:40 EDT
  6934. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6935. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6936. From:         Kaz Shinomiya <ZaKS@AOL.COM>
  6937. Subject:      Re: REMOVE USER!
  6938.  
  6939. Please remove me from lists also.............ZaKS@AOL.com
  6940. =========================================================================
  6941. Date:         Wed, 10 Aug 1994 08:47:15 -0700
  6942. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6943. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6944. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  6945. Subject:      Re: Frontmost application
  6946.  
  6947. At 09:44 8/10/94 -0400, Danny Goodman wrote:
  6948. >>Cavaet:  if you get back an empty list, Finder (or something else lurking
  6949. >>the System, as seen in the About This Macintosh window) is in front.
  6950. >
  6951. >Interesting, and inconsistent (what else is new!).  So the Finder is an
  6952. >application, but not a process.  Well, then perhaps if the "processes whose
  6953. >frontmost is true" statement returns empty, then you know to use Finder
  6954. >commands to figure out which window is on top. YAW(orkaround).
  6955.  
  6956. It gets more interesting, Danny...play with this variation as a starting
  6957. point (yes, I know there *should* only be one process with frontmost set
  6958. true...I'm driving defensively here):
  6959.  
  6960. tell application "Finder"
  6961.     --activate
  6962.     set allProcs to about this macintosh
  6963. end tell
  6964. set frontProcs to {}
  6965. repeat with p in allProcs
  6966.     if frontmost of p then
  6967.         --set end of frontProcs to p  --same either set or copy
  6968.         copy p to end of frontProcs
  6969.     end if
  6970. end repeat
  6971. frontProcs
  6972.  
  6973.  
  6974. =46or me, just now, that returned:
  6975.  
  6976. {item 2 of {process "Eudora2.0.3Fat" of application "Finder", process
  6977. "Script Editor" of application "Finder", process "System Software" of about
  6978. this macintosh of application "Finder", process "UserLand Frontier=81" of
  6979. application "Finder"}}
  6980.  
  6981. =46inder's "about this macintosh" property is similar to the list of
  6982. processes elements, but includes each thing which has its own bar in the
  6983. About This Macintosh window, including the System Software catchall, rather
  6984. than skipping Finder.
  6985.  
  6986. And don't hard-code this too deeply:  the Finder Scripting Guide strongly
  6987. suggests that a future Finder will include Finder amongst the processes.
  6988. So it's probably best to use the original, and then special-case:
  6989.  
  6990. tell application "Finder"
  6991. set frontProc to processes where frontmost is true
  6992. end tell
  6993. if frontProc is {} then
  6994.    -- Finder is in front
  6995. else
  6996.    -- something else is in front
  6997. end if
  6998.  
  6999. --
  7000. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  7001. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  7002. =========================================================================
  7003. Date:         Wed, 10 Aug 1994 11:26:10 PDT
  7004. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7005. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7006. From:         "Lee, Dale" <dale_lee@PETER.BIOLA.EDU>
  7007. Organization: Biola University
  7008. Subject:      XCMD OSAX & MS Mail XCMD
  7009.  
  7010. Does anyone have any experience with the xcmd osax and the Microsoft Mail
  7011. xcmd? I'm trying to determine whether it's possible to have an applescript
  7012. pull messages from a special mailbox and create Now Up To Date calendar
  7013. events.
  7014.  
  7015. (As an aside, I've noticed that the Mail xcmd has a XFCN resource, but no
  7016. XCMD resource. Will this be a problem?)
  7017.  
  7018. I know that the NUD events work, but I haven't any experience with the xcmd
  7019. osax. Any out there that has?
  7020.  
  7021. Dale Lee
  7022. Mgr., Distributed Computer Services
  7023. Biola University, La Mirada  CA
  7024. =========================================================================
  7025. Date:         Wed, 10 Aug 1994 15:58:40 EDT
  7026. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7027. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7028. From:         "Dave Griffin, Ferris State University" <YD65@MUSIC.FERRIS.EDU>
  7029. Subject:      HOW 2 signoff
  7030.  
  7031. I successfully signed off the Macintosh Scripting Systems discussion
  7032. list and thought I would share the info with others.
  7033.  
  7034. I enjoy the list, but I receive too many mail messages each day and have
  7035. decided to signoff this list for now.
  7036. *********
  7037.  
  7038. TO:  listserv@uga.cc.uga.edu
  7039. Subject:
  7040. message:  signoff macscrpt
  7041.  
  7042. **********
  7043.  
  7044. The trouble that I had in signing off resulted from the fact that
  7045. I had subscribed from a Bitnet mail address that has been changed to
  7046. an internet mail address.
  7047.  
  7048. The discussion list Macintosh Scripting Systems is actually
  7049. at two different addresses:
  7050.  
  7051. macscrpt@dartcms1.dartmouth.edu  Macscrpt%dartcms1.bitnet@uga.cc.uga.edu
  7052.  
  7053. BUT the listserv, the place to send subscribtion requests and signoff
  7054. requests is:  listserv@uga.cc.uga.edu
  7055.  
  7056.  
  7057. I hope that this is helpful to others.
  7058.  
  7059. Please send responses to this message to my address directly because
  7060. I am no longer on the list...
  7061.  
  7062. Thank you.
  7063.  
  7064. Dave Griffin,  yd65@music.FERRIS.edu
  7065.  
  7066.          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  7067.          -      F E R R I S   S T A T E   U N I V E R S I T Y      -
  7068.          -              END-USER COMPUTING SUPPORT                 -
  7069.          -  M A C I N T O S H   T E C H N I C A L   S U P P O R T  -
  7070.          -       YD65@MUSIC.FERRIS.EDU     (616) 592-2485          -
  7071.          -            D A V I D   J   G R I F F I N                -
  7072.          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  7073. =========================================================================
  7074. Date:         Wed, 10 Aug 1994 14:53:31 -0600
  7075. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7076. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7077. From:         Carl Carlson <carl@STRIDER.TFO.ARIZONA.EDU>
  7078. Subject:      Buy FileMaker Pro???
  7079.  
  7080. I am using a HyperCard data base and HyperCard's superb string tools to
  7081. generate mosaic-compatible html strings which I pass to my World Wide Web
  7082. server via AS.  I am pondering changing to a "real" data base program that
  7083. supports things equivalent to:
  7084.  
  7085. find all records that have star in field site name
  7086.  
  7087. With HyperCard, of course, "find " only finds the first record.
  7088.  
  7089. I looked at FileMaker Pro, but it seems to have a paltry internal scripting
  7090. language.  Wether it could assemble a html string and export it to AS seems
  7091. unlikely.
  7092.  
  7093. Any perspectives to offer regarding:
  7094.  
  7095. FileMaker Pro
  7096. Foxbase Pro
  7097. HyperCard search XCMDs
  7098. other?
  7099.  
  7100. Thanks
  7101.  
  7102. Carl A. Carlson
  7103. U.S.Geological Survey
  7104. =========================================================================
  7105. Date:         Wed, 10 Aug 1994 15:14:15 -0800
  7106. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7107. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7108. From:         David Lewis <lewis@NETCOM.COM>
  7109. Subject:      Frontier silently truncates string literals
  7110.  
  7111. While strings in Frontier (v3.0.3) can be long (probably 32K, I'd guess),
  7112. the following construct fails as part of a script:
  7113.  
  7114. scratchpad.stringExample = "\
  7115.   bunch of stuff...\r\
  7116.   more stuff...\r\
  7117.   still more till the\r\
  7118.   total length is greater\r\
  7119.   than 255 characters\
  7120.   "
  7121.  
  7122. scratchpad.stringExample will have a length of 255 and the rest will be
  7123. thrown on the floor. It would be nice if string literals could be as long
  7124. as strings, but failing that the compiler should at least tell you it was
  7125. doing this. Is there some patch I can make to the system to work around
  7126. this problem? Thanks.
  7127.  
  7128.         David
  7129.  
  7130.  
  7131. David Lewis     Seagate Technology      (408) 439-2374  lewis@netcom.com
  7132. =========================================================================
  7133. Date:         Wed, 10 Aug 1994 15:21:41 -0700
  7134. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7135. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7136. From:         Mike Shaff <shaff@QUILTY.STANFORD.EDU>
  7137. Subject:      Default folder
  7138.  
  7139. Greetings,
  7140.  
  7141. Currently I am using Finder Liason to set the default folder before launching
  7142. an application.  A rather bulky solution.
  7143.  
  7144. Are there alternatives?  My interest is to find to solutions.  The first for
  7145. the many nonscriptable finders and other the syntax for the scriptable finder.
  7146.  
  7147. As always, thanks!
  7148.  
  7149. Michael
  7150. =========================================================================
  7151. Date:         Wed, 10 Aug 1994 16:02:24 -0800
  7152. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7153. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7154. From:         Kee Nethery +1 408 974 7889 <kee@KAGI.COM>
  7155. Subject:      Re: Buy FileMaker Pro???
  7156.  
  7157. >I am using a HyperCard data base and HyperCard's superb string tools to
  7158. >generate mosaic-compatible html strings which I pass to my World Wide Web
  7159. >server via AS.  I am pondering changing to a "real" data base program that
  7160. >supports things equivalent to:
  7161. >
  7162. >find all records that have star in field site name
  7163. >
  7164. >With HyperCard, of course, "find " only finds the first record.
  7165. >
  7166. >I looked at FileMaker Pro, but it seems to have a paltry internal scripting
  7167. >language.  Wether it could assemble a html string and export it to AS seems
  7168. >unlikely.
  7169. >
  7170. >Any perspectives to offer regarding:
  7171. >
  7172. >FileMaker Pro
  7173. >Foxbase Pro
  7174. >HyperCard search XCMDs
  7175. >other?
  7176. >
  7177. >Thanks
  7178. >
  7179. >Carl A. Carlson
  7180. >U.S.Geological Survey
  7181.  
  7182. Oh yes!
  7183.  
  7184. I am using Butler from Everyware in Canada. It is a MacOS based DAL (Data
  7185. Access Language) database. I access it with DataScript, a DAL to
  7186. AppleScript translator (Applelink is Knowledgeable or something like that).
  7187. The combination is sweet.
  7188.  
  7189. Kee Nethery
  7190. =========================================================================
  7191. Date:         Thu, 11 Aug 1994 11:22:00 +1200
  7192. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7193. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7194. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  7195.               NZ" <LDO@WAIKATO.AC.NZ>
  7196. Subject:      Re: Buy FileMaker Pro???
  7197.  
  7198. Carl Carlson <carl@STRIDER.TFO.ARIZONA.EDU> writes:
  7199.  
  7200. >I am using a HyperCard data base and HyperCard's superb string tools to
  7201. >generate mosaic-compatible html strings which I pass to my World Wide Web
  7202. >server via AS.  I am pondering changing to a "real" data base program that
  7203. >supports things equivalent to:
  7204. >
  7205. >find all records that have star in field site name
  7206. >
  7207. >With HyperCard, of course, "find " only finds the first record.
  7208.  
  7209. Perhaps I should point out, with HyperCard you can do something like
  7210.  
  7211.         mark cards where field "site name" contains star
  7212.  
  7213. then use "go to next marked card" to visit all the cards matching the
  7214. criterion.
  7215.  
  7216. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  7217. Info & Tech Services Division              fax: +64-7-838-4066
  7218. University of Waikato            electric mail: ldo@waikato.ac.nz
  7219. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  7220. =========================================================================
  7221. Date:         Wed, 10 Aug 1994 18:04:47 -0800
  7222. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7223. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7224. From:         Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU>
  7225. Subject:      Changing the Chooser name and searching the startup disk
  7226.  
  7227. Is there a good way to get and change the name of the user in the Sharing
  7228. Setup control panel? I've been the osaxen Extract Resource to get the user
  7229. name up to this point but now I want to change it. I'm worried about using Add
  7230. Resource on the System file.
  7231.  
  7232. Also, does anyone have a rapid way of searching the startup disk for a folder?
  7233. I also need to be able to find multiple occurances of the folder. The script I
  7234. wrote is dog slow but works. I would like something fast that works.
  7235.  
  7236. Thanks a alot.
  7237.  
  7238. Greg Francis
  7239. =========================================================================
  7240. Date:         Thu, 11 Aug 1994 00:35:17 EDT
  7241. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7242. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7243. From:         Ben Clemens <BClemens@AOL.COM>
  7244. Subject:      Re: REMOVE ME PLEASE
  7245.  
  7246. Sorry, couldn't find the protocol for unsubscribing to this list. Could the
  7247. admin remove me please?
  7248. =========================================================================
  7249. Date:         Wed, 10 Aug 1994 22:09:27 -0800
  7250. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7251. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7252. From:         "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
  7253. Subject:      MacPGP
  7254.  
  7255. Didn't someone indicate some time ago that you could script MacPGP? How
  7256. come I can't open its dictionary?
  7257.  
  7258. -roy
  7259.  
  7260. Roy S. Rapoport                                       rsr@berksys.com
  7261. 2095 Rose St                                    Berkeley   CA   94709
  7262. Berkeley Systems would have to pay me a lot more if they wanted me to
  7263. speak for them.
  7264. =========================================================================
  7265. Date:         Thu, 11 Aug 1994 01:13:40 -0400
  7266. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7267. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7268. From:         Nikolaos Daniel Willmore <ndw1@COLUMBIA.EDU>
  7269. Subject:      Re: MacPGP
  7270.  
  7271. As Pete Hinely would tell you if you were a Usenet addict, only MacPGP2.3aV1.1
  7272. or MacPGP2.6ui have aete resources, and thus will do Apple Script.
  7273.  
  7274. Look on ftp.csn.org in /mpj/... where README.MPJ tells the name of the directory
  7275. with pgp stuff in it, for MacPGP2.6ui (English version).
  7276.  
  7277.  - Nik
  7278. =========================================================================
  7279. Date:         Thu, 11 Aug 1994 03:48:51 -0300
  7280. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7281. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7282. From:         Bill Hutten <bhutten@FOX.NSTN.NS.CA>
  7283. Subject:      Re: Buy FileMaker Pro???
  7284.  
  7285. >I am using a HyperCard data base and HyperCard's superb string tools to
  7286. >generate mosaic-compatible html strings which I pass to my World Wide Web
  7287. >server via AS.  I am pondering changing to a "real" data base program that
  7288. >supports things equivalent to:
  7289. >
  7290. >find all records that have star in field site name
  7291. >
  7292. >With HyperCard, of course, "find " only finds the first record.
  7293. >Any perspectives to offer regarding:
  7294. >
  7295. >FileMaker Pro
  7296. >Foxbase Pro
  7297. >HyperCard search XCMDs
  7298. >other?
  7299.  
  7300.  
  7301.  
  7302. You could do all this easily in 4D. I've been doing some experimenting with
  7303. generating HTML code from a 4D database and it's trivial. 4D can send and
  7304. recieve AppleEvents, and obviously has a powerful and flexible database
  7305. engine. Of course, it's about $600.
  7306.  
  7307.  
  7308.  
  7309. - bill
  7310.  
  7311.  
  7312. | Bill Hutten - bhutten@fox.nstn.ns.ca
  7313. | 6411 Cloverdale Rd. Halifax, NS Canada B3L 2N6   (902) 453 2482
  7314. |     "Hard to love, when you're bracing for impact." - Martin Amis
  7315. =========================================================================
  7316. Date:         Thu, 11 Aug 1994 00:21:07 -0700
  7317. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7318. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7319. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  7320. Subject:      Re: Frontier silently truncates string literals
  7321.  
  7322. >While strings in Frontier (v3.0.3) can be long (probably 32K, I'd guess),
  7323. >the following construct fails as part of a script:
  7324. >
  7325. >scratchpad.stringExample = "\
  7326. >  bunch of stuff...\r\
  7327. >  more stuff...\r\
  7328. >  still more till the\r\
  7329. >  total length is greater\r\
  7330. >  than 255 characters\
  7331. >  "
  7332. >
  7333. >scratchpad.stringExample will have a length of 255 and the rest will be
  7334. >thrown on the floor. It would be nice if string literals could be as long
  7335. >as strings, but failing that the compiler should at least tell you it was
  7336. >doing this. Is there some patch I can make to the system to work around
  7337. >this problem? Thanks.
  7338. >
  7339. Unfortunately, there do still seem to be a few places where the effect is
  7340. as if a Pascal-style string were used.  [There used to be more...most of
  7341. them got taken care of in Frontier 2.]
  7342.  
  7343. I think you can do what you want by adding together a series of shorter strings.
  7344.  
  7345. scratchpad.stringExample = \
  7346.   "bunch of stuff...\r" +\
  7347.   "more stuff...\r" +\
  7348.   "still more till the\r" +\
  7349.   "total length is greater\r" +\
  7350.   "than 255 characters"
  7351.  
  7352. If the string is really constant, you should also be able to write it into
  7353. your root file as a resource (not an 'STR ' resource...those are Pascal
  7354. strings.  'TEXT' would be appropriate (and ResEdit knows about those, so
  7355. they are fairly simple to manipulate).  Use a unique ID fairly high up but
  7356. below 25,000, to give yourself the best chance to avoid collisions.
  7357.  
  7358.    --John
  7359.  
  7360. --
  7361. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  7362. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  7363. =========================================================================
  7364. Date:         Thu, 11 Aug 1994 04:54:27 -0400
  7365. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7366. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7367. From:         Kiran Wagle <groo@NETCOM.COM>
  7368. Subject:      Re: Changing the Chooser name
  7369.  
  7370. At 10:04 PM 8/10/94, Greg Francis wrote:
  7371.  
  7372. > Is there a good way to get and change the name of the user in the Sharing
  7373. > Setup control panel? I've been the osaxen Extract Resource to get the user
  7374.  
  7375. I just saw notice of a new osax on sumex.  Excerpts:
  7376.  
  7377. > Users and Groups 'osax' 1.1b
  7378. > From: Quinn <quinn@cs.uwa.edu.au>
  7379.  
  7380. > manipulate your Users & Groups Data File from AppleScript.  Many operations
  7381. > are supported including adding, changing and deleting users, authenticating
  7382.  
  7383. > Note: An earlier version of this osax was previously bundled with Peter N
  7384. > Lewis' Script Daemon.  This version represents a serious improvement over
  7385.  
  7386. > [Archived as /info-mac/dev/users-and-groups-osax-11b.hqx; 39K]
  7387. =========================================================================
  7388. Date:         Sun, 2 Nov 1997 16:19:12 -0800
  7389. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7390. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7391. From:         David Lewis <lewis@NETCOM.COM>
  7392. Subject:      Re: Frontier silently truncates string literals
  7393.  
  7394. >>While strings in Frontier (v3.0.3) can be long (probably 32K, I'd guess),
  7395. >>the following construct fails as part of a script:
  7396. >>
  7397. >>scratchpad.stringExample = "\
  7398. >>  bunch of stuff...\r\
  7399. >>  more stuff...\r\
  7400. >>  still more till the\r\
  7401. >>  total length is greater\r\
  7402. >>  than 255 characters\
  7403. >>  "
  7404. >>
  7405. >>scratchpad.stringExample will have a length of 255 and the rest will be
  7406. >>thrown on the floor. It would be nice if string literals could be as long
  7407. >>as strings, but failing that the compiler should at least tell you it was
  7408. >>doing this. Is there some patch I can make to the system to work around
  7409. >>this problem? Thanks.
  7410. >>
  7411. >Unfortunately, there do still seem to be a few places where the effect is
  7412. >as if a Pascal-style string were used.  [There used to be more...most of
  7413. >them got taken care of in Frontier 2.]
  7414. >
  7415. >I think you can do what you want by adding together a series of shorter
  7416. >strings.
  7417. >
  7418. >scratchpad.stringExample = \
  7419. >  "bunch of stuff...\r" +\
  7420. >  "more stuff...\r" +\
  7421. >  "still more till the\r" +\
  7422. >  "total length is greater\r" +\
  7423. >  "than 255 characters"
  7424. >
  7425. Hi John,
  7426.  
  7427. I guess I didn't make myself sufficiently clear. I'd like to be able to use
  7428. the original construct because it's visually cleaner, and seems to execute
  7429. a good deal faster. (It seems that Frontier isn't being smart enough to
  7430. realize that it could concatenate the strings at compile time.) What I'd
  7431. like is just something that would give me a scriptError when the truncation
  7432. occurred.
  7433.  
  7434.         David
  7435.  
  7436. David Lewis     Seagate Technology      (408) 439-2374  lewis@netcom.com
  7437. =========================================================================
  7438. Date:         Thu, 11 Aug 1994 08:43:42 -0800
  7439. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7440. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7441. From:         "Hon, Michael T" <honmt@TXPCAP.HOU.XWH.BP.COM>
  7442. Subject:      Re: Dealing with unaware applications
  7443.  
  7444. :>This raises the question of how to deal with AS unaware applications.
  7445. :>Applications, such as Stanford's MacSamson, often present dialogs when
  7446. exiting
  7447. :>AppleScript aware applications, as I understand it, should
  7448. understand,"without
  7449. :>questions."  But, how does one deal with the others?  Unfortunately AS
  7450. unaware
  7451. :>application are still the majority.
  7452.  
  7453. :For dealing with un-aware applications, I think you can easily make
  7454. :KeyQuencer do what you want. It's the best US$10 you'll ever spend!
  7455.  
  7456. Another option (though not AppleScript) is the control panel Okey-Dokey, whose
  7457. sole purpose in existence is to thwack the default button in a dialog after a
  7458. specified period of time.  Since it doesn't know the difference between normal
  7459. use and when you've called for a shutdown with AppleScript, you'll want to set
  7460. the threshold high.  Otherwise, your users might be surprised by applications
  7461. automagically hitting OK for them.
  7462.  
  7463. You ought to find Okey-Dokey in the usual places.  I believe it was written by
  7464. Apple employees, so I think it's available somewhere on ftp.apple.com if you
  7465. can't find it at your local info-mac mirror.
  7466.  
  7467.  
  7468. --
  7469. Mike Hon
  7470. Software Consultant                                 honmt@txpcap.hou.xwh.bp.com
  7471. Precision Task Group  Houston, TX                                  713/560-3017
  7472. =========================================================================
  7473. Date:         Thu, 11 Aug 1994 10:25:50 EDT
  7474. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7475. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7476. From:         Danny Goodman <DGoodman@AOL.COM>
  7477. Subject:      Re: Frontmost application
  7478.  
  7479. >tell application "Finder"
  7480. >set frontProc to processes where frontmost is true
  7481. >end tell
  7482. >if frontProc is {} then
  7483. >   -- Finder is in front
  7484. >else
  7485. >   -- something else is in front
  7486. >end if
  7487.  
  7488. Yes, this is the variation I'd use until the day the Finder comes back as a
  7489. process.
  7490.  
  7491. Danny
  7492. =========================================================================
  7493. Date:         Thu, 11 Aug 1994 10:49:21 U
  7494. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7495. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7496. From:         jsullivan <jsullivan@ARPA.MIL>
  7497. Subject:      Re: Buy FileMaker Pro???
  7498.  
  7499. I am curious about how and why some of you are using databases to generate
  7500. html codes.  If you could contact me in person I would appreciate it!
  7501.  
  7502. -j o n-
  7503.  
  7504. --------------------------------------------------------------------------------
  7505. Jonathan P. Sullivan, "Webmaster"                    |    jsullivan@arpa.mil
  7506. [e]
  7507. Technology Reinvestment Project                      |          703/696-8950
  7508. [v]
  7509. 3701 N. Fairfax Drive, Arlington, VA  22203-1714     |          703/696-8956
  7510. [f]
  7511. _______________________________________________________________________________
  7512. From: Macintosh Scripting Systems on Wed, Aug 10, 1994 6:55 PM
  7513. Subject: Buy FileMaker Pro???
  7514. To: Multiple recipients of list MACSCRPT
  7515.  
  7516. I am using a HyperCard data base and HyperCard's superb string tools to
  7517. generate mosaic-compatible html strings which I pass to my World Wide Web
  7518. server via AS.  I am pondering changing to a "real" data base program that
  7519. supports things equivalent to:
  7520.  
  7521. find all records that have star in field site name
  7522.  
  7523. With HyperCard, of course, "find " only finds the first record.
  7524.  
  7525. I looked at FileMaker Pro, but it seems to have a paltry internal scripting
  7526. language.  Wether it could assemble a html string and export it to AS seems
  7527. unlikely.
  7528.  
  7529. Any perspectives to offer regarding:
  7530.  
  7531. FileMaker Pro
  7532. Foxbase Pro
  7533. HyperCard search XCMDs
  7534. other?
  7535.  
  7536. Thanks
  7537.  
  7538. Carl A. Carlson
  7539. U.S.Geological Survey
  7540. =========================================================================
  7541. Date:         Thu, 11 Aug 1994 07:59:16 -0700
  7542. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7543. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7544. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  7545. Subject:      Re: Frontier silently truncates string literals
  7546.  
  7547. David Lewis wrote
  7548.  
  7549. >While strings in Frontier (v3.0.3) can be long (probably 32K, I'd guess),
  7550. >the following construct fails as part of a script:
  7551.  
  7552. [demonstration of error not repeated again here]
  7553.  
  7554. Indeed, after my last reply, I made a 1925 byte TEXT resource in ResEdit
  7555. (pasted in several repeats of the start of the Gettysburg Address, and put
  7556. it into my root as id 24990.
  7557.  
  7558. Then I ran these two statements:
  7559.  
  7560. rez.getResource (frontier.getFilePath(), 'TEXT', 24990, @scratchpad.aaaa)
  7561. scratchpad.aaaa = string (scratchpad.aaaa)
  7562.  
  7563. [The first creates a binary [TEXT] object...the second makes it a normal
  7564. string.]
  7565.  
  7566. BTW, there really isn't a fixed limit to the size of a string:  it's just a
  7567. handle-based block of memory containing the raw text...the size is the size
  7568. maintained by the memory manager...no length field to overflow.
  7569.  
  7570.    --John
  7571.  
  7572. --
  7573. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  7574. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  7575. =========================================================================
  7576. Date:         Thu, 11 Aug 1994 08:35:12 -0700
  7577. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7578. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7579. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  7580. Subject:      Re: Frontier silently truncates string literals
  7581.  
  7582. At 16:19 11/2/97 -0800, David Lewis wrote:
  7583. >Hi John,
  7584. >
  7585. >I guess I didn't make myself sufficiently clear. I'd like to be able to use
  7586. >the original construct because it's visually cleaner, and seems to execute
  7587. >a good deal faster. (It seems that Frontier isn't being smart enough to
  7588. >realize that it could concatenate the strings at compile time.) What I'd
  7589. >like is just something that would give me a scriptError when the truncation
  7590. >occurred.
  7591.  
  7592. Sorry...I was speaking of what one can do now.  I too would like a fix, but
  7593. that's a future matter.  I will make sure the development team at UserLand
  7594. knows about this discussion.
  7595.  
  7596.   --John
  7597.  
  7598. --John W. Baxter    Port Ludlow, WA USA   jwbaxter@pt.olympus.net
  7599.   UserLand Software support
  7600. =========================================================================
  7601. Date:         Thu, 11 Aug 1994 09:39:39 -0700
  7602. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7603. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7604. From:         Derrick Schneider <derrick@NETCOM.COM>
  7605. Subject:      Re: Default folder
  7606. In-Reply-To:  <199408102321.QAA29823@mail.netcom.com>
  7607.  
  7608. In Mike Alldritt's Script Tools collection (or maybe it's Jon's
  7609. Commands), there is a command to get and set the default directory.
  7610.  
  7611. Derrick
  7612. =========================================================================
  7613. Date:         Thu, 11 Aug 1994 20:07:24 +0100
  7614. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7615. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7616. From:         Christian Orellana <muscabo@DFI.AAU.DK>
  7617. Subject:      Any news on Applescript contest??
  7618.  
  7619. Hi all!
  7620. Does anybody know if the winners in the everyday applescript contest have
  7621. been announced??
  7622.  
  7623.  
  7624. Best regards -
  7625. Christian A.Borlund Orellana
  7626. Institute of Physics and Astronomy Aarhus University.
  7627. ______________________________________________________
  7628. Internet e-mail:        muscabo@dfi.aau.dk
  7629. voice:                  +45-86102798
  7630. mail:                   Dr.Margrethesvej 11,3.th.
  7631.                         8200 Aarhus N, DENMARK.
  7632. ______________________________________________________
  7633. =========================================================================
  7634. Date:         Thu, 11 Aug 1994 11:08:44 PDT
  7635. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7636. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7637. From:         Joe Scripter <MikeL@EWORLD.COM>
  7638. Subject:      AppleScript & Speech
  7639.  
  7640. When I give this command to xxx, he replies, error in script, can't set
  7641. minutes to (and then he says whatever the minutes happen to be)
  7642.  
  7643. The script is as follows:
  7644. set d to current date
  7645. set x to (time of d)
  7646. set hour to (x div 3600)
  7647. set x to (x - (hour * 3600))
  7648. set mins to (x div 60)
  7649. set secs to (x - (mins * 60))
  7650. if (hour = 0) then
  7651. set hourstr to "midnight "
  7652. else
  7653. if (hour > 12) then
  7654. set hour to (hour - 12)
  7655. end if
  7656. set hourstr to (hour as string) & " "
  7657. end if
  7658. if mins = 0 then
  7659. if hour = 0
  7660. set minsstr to " "
  7661. else
  7662. set minsstr to "o'clock "
  7663. end if
  7664. else
  7665. set minsstr to (mins as string) & " "
  7666. end if
  7667. if secs = 0 then
  7668. set secsstr to "exactly"
  7669. else if secs = 1 then
  7670. set secsstr to "and " & secs as string & " second"
  7671. else
  7672. set secsstr to "and " & secs as string & " seconds"
  7673. end if
  7674. acknowledge saying (hourstr & minsstr & secsstr) caption (time string of d)
  7675.  
  7676. What is wrong?  How do I fix it?  I don't know applescript, so if someone can
  7677. post the correct script, perhaps just by copying from the macro editor, I
  7678. would really appreciate it.
  7679.  
  7680.  
  7681. -Mike
  7682. =========================================================================
  7683. Date:         Thu, 11 Aug 1994 11:18:19 PDT
  7684. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7685. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7686. From:         Joe Scripter <MikeL@EWORLD.COM>
  7687. Subject:      AS Server Application
  7688.  
  7689. I'd like to write a script that would replace a server application I wrote
  7690. which accepts apple events. How do I make a script recognize and respond to
  7691. an apple event, in this case with a filespec as it's data
  7692.  
  7693. -Mike
  7694. =========================================================================
  7695. Date:         Thu, 11 Aug 1994 11:56:04 -0800
  7696. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7697. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7698. From:         David Lewis <lewis@NETCOM.COM>
  7699. Subject:      Re: Frontier silently truncates string literals
  7700.  
  7701. >At 16:19 11/2/97 -0800, David Lewis wrote:
  7702. >>Hi John,
  7703. >>
  7704. >>I guess I didn't make myself sufficiently clear. I'd like to be able to use
  7705. >>the original construct because it's visually cleaner, and seems to execute
  7706. >>a good deal faster. (It seems that Frontier isn't being smart enough to
  7707. >>realize that it could concatenate the strings at compile time.) What I'd
  7708. >>like is just something that would give me a scriptError when the truncation
  7709. >>occurred.
  7710. >
  7711. >Sorry...I was speaking of what one can do now.  I too would like a fix, but
  7712. >that's a future matter.  I will make sure the development team at UserLand
  7713. >knows about this discussion.
  7714. >
  7715. Thanks. I guess I'll put a warning in the next version of the KeyQuencer
  7716. example code.
  7717.  
  7718.         David
  7719.  
  7720. David Lewis     Seagate Technology      (408) 439-2374  lewis@netcom.com
  7721. =========================================================================
  7722. Date:         Thu, 11 Aug 1994 15:21:35 U
  7723. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7724. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7725. From:         jsullivan <jsullivan@ARPA.MIL>
  7726. Subject:      Re: XCMD OSAX & MS Mail XCMD
  7727.  
  7728. I would be interested in hearing from anyone who has been able to do anything
  7729. with Microsoft Mail using AppleScript or QuicKeys. I would really like to
  7730. find a way to sort my incoming mail and do some rules based stuff.
  7731.  
  7732. -j o n-
  7733.  
  7734. --------------------------------------------------------------------------------
  7735. Jonathan P. Sullivan, "Webmaster"                    |    jsullivan@arpa.mil
  7736. [e]
  7737. Technology Reinvestment Project                      |          703/696-8947
  7738. [v]
  7739. 3701 N. Fairfax Drive, Arlington, VA  22203-1714     |          703/696-8956
  7740. [f]
  7741. _______________________________________________________________________________
  7742. From: Macintosh Scripting Systems on Wed, Aug 10, 1994 4:28 PM
  7743. Subject: XCMD OSAX & MS Mail XCMD
  7744. To: Multiple recipients of list MACSCRPT
  7745.  
  7746. Does anyone have any experience with the xcmd osax and the Microsoft Mail
  7747. xcmd? I'm trying to determine whether it's possible to have an applescript
  7748. pull messages from a special mailbox and create Now Up To Date calendar
  7749. events.
  7750.  
  7751. (As an aside, I've noticed that the Mail xcmd has a XFCN resource, but no
  7752. XCMD resource. Will this be a problem?)
  7753.  
  7754. I know that the NUD events work, but I haven't any experience with the xcmd
  7755. osax. Any out there that has?
  7756.  
  7757. Dale Lee
  7758. Mgr., Distributed Computer Services
  7759. Biola University, La Mirada  CA
  7760. =========================================================================
  7761. Date:         Thu, 11 Aug 1994 15:41:02 U
  7762. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7763. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7764. From:         jsullivan <jsullivan@ARPA.MIL>
  7765. Subject:      Cursor coordinates/Where FAQ?
  7766.  
  7767. Having failed to locate a Macintosh application for creating HTML image maps,
  7768. I decided I would write an AppleScript that would permit me to draw a
  7769. rectangle on the screen and then deliver the coordinates of the upper-left,
  7770. lower-right corners to the clipboard.  Being a novice however, I am not quite
  7771. sure how to do this.  I know that you can get the coordinates of a window
  7772. that already exists, but I need to draw an outline around a screen image.
  7773. Even if I could get the coordinates of a single click that would be fine.
  7774.  
  7775. Also, where is the FAQ for this list or for AS?
  7776. =========================================================================
  7777. Date:         Thu, 11 Aug 1994 22:45:30 +0100
  7778. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7779. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7780. From:         Christian Orellana <muscabo@DFI.AAU.DK>
  7781. Subject:      Re: Default folder
  7782.  
  7783. >In Mike Alldritt's Script Tools collection (or maybe it's Jon's
  7784. >Commands), there is a command to get and set the default directory.
  7785. >
  7786. >Derrick
  7787.  
  7788. As far as I recall that only sets the default directory for subsequent
  7789. calls to choose files/folders from that same osax.
  7790.  
  7791. Best regards -
  7792. Christian A.Borlund Orellana
  7793. Institute of Physics and Astronomy Aarhus University.
  7794. ______________________________________________________
  7795. Internet e-mail:        muscabo@dfi.aau.dk
  7796. voice:                  +45-86102798
  7797. mail:                   Dr.Margrethesvej 11,3.th.
  7798.                         8200 Aarhus N, DENMARK.
  7799. ______________________________________________________
  7800. =========================================================================
  7801. Date:         Thu, 11 Aug 1994 16:35:18 EST
  7802. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7803. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7804. From:         broberts@UISM.BU.EDU
  7805. Subject:      Re: Buy FileMaker Pro???
  7806.  
  7807. >Carl Carlson <carl@STRIDER.TFO.ARIZONA.EDU> writes:
  7808.  
  7809.  
  7810. >I am using a HyperCard data base and HyperCard's superb string tools to
  7811.  
  7812. >generate mosaic-compatible html strings which I pass to my World Wide Web
  7813.  
  7814. >server via AS.  I am pondering changing to a "real" data base program tha
  7815.  
  7816. >supports things equivalent to:
  7817.  
  7818. >
  7819.  
  7820. >find all records that have star in field site name . . .
  7821.  
  7822.  
  7823.     I'm using FileMaker Pro with AS to serve docs (graphics, actually) via www.
  7824. I created a couple of "computed" fields in the database that construct valid
  7825. URLs from other fields in records found in the search, and do the html
  7826. formatting of the results in AS.
  7827.     So far, it works very well, but I have just a few records in the database.
  7828. Ultimately there will be a couple hundred records, and other threads on this
  7829. list have raised performance questions around FileMaker. I'm hoping that running
  7830. it all on an AWS 9150 will help in that regard.
  7831.  
  7832. Bill Robertson
  7833. Boston University Microcomputer Support Services
  7834. aka broberts@uism.bu.edu    billr@bu.edu
  7835. http://academy-www.bu.edu/
  7836. =========================================================================
  7837. Date:         Thu, 11 Aug 1994 14:39:35 -0800
  7838. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7839. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7840. From:         Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
  7841. Subject:      Re: Cursor coordinates/Where FAQ?
  7842.  
  7843. >Having failed to locate a Macintosh application for creating HTML image maps,
  7844. >I decided I would write an AppleScript that would permit me to draw a
  7845. >rectangle on the screen and then deliver the coordinates of the upper-left,
  7846. >lower-right corners to the clipboard.  Being a novice however, I am not quite
  7847. >sure how to do this.  I know that you can get the coordinates of a window
  7848. >that already exists, but I need to draw an outline around a screen image.
  7849. >Even if I could get the coordinates of a single click that would be fine.
  7850. >
  7851. >Also, where is the FAQ for this list or for AS?
  7852.  
  7853. Ah! My suggestion for creating HTML pages is to get MacWeb and go looking
  7854. for pages that have the characteristics you desire. Then in the menus,
  7855. select View Source to see the text of the html that created the screen you
  7856. are looking at. Learn by example!
  7857.  
  7858. Kee
  7859.  
  7860. _________________________________________________________________
  7861. Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
  7862. =========================================================================
  7863. Date:         Thu, 11 Aug 1994 14:53:50 -0800
  7864. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7865. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7866. From:         Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
  7867. Subject:      Re: Eudora scripts
  7868.  
  7869. >  I'm having trouble figuring the syntax of AppleScript commands in
  7870. >Eudora. It seems pretty confusing to me.
  7871. >
  7872. >If anyone has any Eudora AppleScripts that they can send me, I would
  7873. >appreciate it.
  7874.  
  7875.  
  7876. -- These are scripts that run within HyperCard. The Copy Field portion
  7877. -- just grabs my message out of a HyperCard field.
  7878.  
  7879. -- Creates and sends a message
  7880.  
  7881. property outBox : "Out"
  7882. property trashBox : "Trash"
  7883. property defaults : ""
  7884. property inBox : "In"
  7885. property asBox : "AppleScript list"
  7886. property changed_C : 0
  7887. property msgbody : ""
  7888.  
  7889. on mouseUp
  7890. sendmail()
  7891. end mouseUp
  7892.  
  7893. on sendmail()
  7894. copy field "arf" to msgbody
  7895. --
  7896. -- The tricky part to this script is the weird syntax for
  7897. -- creating a new message.
  7898. --
  7899. -- Important tip:  "Message 0" is shorthand for the current message
  7900. --
  7901. tell application "Eudora2.0.3"
  7902. make message InsertHere end of mailbox outBox of mail folder ""
  7903. set field "to" of message 0 to "kee@mail.kagi.com"
  7904. set field "subject" of message 0 to "this test"
  7905. set field "" of message 0 to msgbody
  7906. queue message 0
  7907. end tell
  7908. end sendmail
  7909.  
  7910. -- counts the mail in my eudora inbox, reads all the subjects,
  7911. -- puts them into a list, puts the list into a field.
  7912.  
  7913. property outBox : "Out"
  7914. property trashBox : "Trash"
  7915. property defaults : ""
  7916. property inBox : "In"
  7917. property asBox : "AppleScript list"
  7918. property changed_C : 0
  7919. property thedata : ""
  7920.  
  7921. on mouseUp
  7922.         run
  7923. end mouseUp
  7924.  
  7925. on run
  7926. set messageCount to {}
  7927. tell application "Eudora2.0.3"
  7928. activate
  7929. set messageCount to count message of mailbox inBox of mail folder ""
  7930. --display dialog "There are " & messageCount & " messages to process."
  7931. repeat with i from messageCount to 1 by -1
  7932. try
  7933. set holder to Subject of message i of mailbox inBox of mail folder defaults
  7934. set thedata to thedata & return & (holder as text)
  7935.  
  7936. on error
  7937. tell me
  7938. --nothing
  7939. end tell
  7940. end try
  7941. end repeat
  7942.  
  7943. end tell
  7944. copy thedata to field "arf"
  7945. -- display dialog messageCount & " files processed," &
  7946. -- changed_C & "files moved." as string
  7947. end run
  7948.  
  7949. _________________________________________________________________
  7950. Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
  7951. =========================================================================
  7952. Date:         Thu, 11 Aug 1994 15:14:07 PDT
  7953. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7954. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7955. From:         Brad Schrick <brad@BATNET.COM>
  7956. Subject:      Re: Cursor coordinates/Where FAQ?
  7957.  
  7958. Maps are discussed on Chuck Shotton's excellent pages about his excellent
  7959. HTTP server, MacHTTP, which is also available there.  Check out the
  7960. 'Examples' page:
  7961.  
  7962. http://www.uth.tmc.edu/mac_info/machttp_info.html
  7963.  
  7964. >Having failed to locate a Macintosh application for creating HTML image maps,
  7965. >I decided I would write an AppleScript that would permit me to draw a
  7966. >rectangle on the screen and then deliver the coordinates of the upper-left,
  7967. >lower-right corners to the clipboard.  Being a novice however, I am not quite
  7968. >sure how to do this.  I know that you can get the coordinates of a window
  7969. >that already exists, but I need to draw an outline around a screen image.
  7970. >Even if I could get the coordinates of a single click that would be fine.
  7971. >
  7972. >Also, where is the FAQ for this list or for AS?
  7973.  
  7974. -----------------------------------------------------------------------------
  7975. Brad Schrick                           or try
  7976. Engineering Software Concepts, Inc.       Embry-Riddle Aeronautical University
  7977. 236 Hamilton Avenue / PO Box 66           600 S Clyde Morris Blvd
  7978. Palo Alto, California 94301               Daytona Beach, FL 32114
  7979. (415) 325 4321 (messages)                 (904) 226 6200
  7980. brad@ape.com                              schrickb@db.erau.edu
  7981. esc@isl.stanford.edu                      http://macwww.db.erau.edu/
  7982. ----------------------------------------------------------------------------
  7983. -
  7984. =========================================================================
  7985. Date:         Thu, 11 Aug 1994 18:33:00 -0400
  7986. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7987. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7988. From:         "Steven L. Rohall" <slrohall@TASC.COM>
  7989. Subject:      finder processes...
  7990.  
  7991. When I try something like:
  7992.  
  7993. tell application "Finder"
  7994.   every process
  7995. end tell
  7996.  
  7997. I get only application processes.  But when I use "list processes" from the
  7998. Script Tools osaxen, I get all processes, even faceless, background apps.
  7999. For my simple script, I'd like to have all processes listed.  Is there
  8000. anyway to duplicate this behavior with the scriptable finder?
  8001.  
  8002.                                 -Steve.
  8003.  
  8004.  
  8005. +--------------------------------------------------------------+
  8006. | Steven L. Rohall                                             |
  8007. |                            ________ _        ______  ______  |
  8008. | 55 Walkers Brook Drive        /    / \      /     / /     /  |
  8009. | Reading, MA 01867-3297       /    /___\    /______ /         |
  8010. | Tel: (617)942-2000          /    /     \         //          |
  8011. | Fax: (617)942-7100         /    /       \/______//______/    |
  8012. | slrohall@tasc.com                                            |
  8013. | (MIME-conformant mail welcome.)                              |
  8014. +--------------------------------------------------------------+
  8015. =========================================================================
  8016. Date:         Thu, 11 Aug 1994 15:46:34 -0700
  8017. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8018. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8019. From:         Derrick Schneider <derrick@NETCOM.COM>
  8020. Subject:      Re: Default folder
  8021. In-Reply-To:  <199408112117.OAA02359@mail2.netcom.com>
  8022.  
  8023. I don't have a Mac in front of me, so I could be wrong, but in my notes
  8024. it's got a get default folder and set default folder (as part of the
  8025. choose files and folders scripting addition). I'm sure Mark will see this
  8026. and clarify.
  8027.  
  8028. Derrick
  8029. =========================================================================
  8030. Date:         Fri, 12 Aug 1994 02:36:28 GMT
  8031. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8032. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8033. From:         Jay Hebert <jayh@LAISON.W8HD.ORG>
  8034. Organization: L'AISON - Beverly Hills, Michigan
  8035. Subject:      Re: Visual cues that an AppleScript is running
  8036.  
  8037. Taylor Leaming H3-283 <tobor.sps.mot.com!leamingt> writes:
  8038.  
  8039. > Greetings,
  8040. >
  8041. Warning: This particular reply may be totally unrelated to your needs... =)
  8042. > I know this may sound like a lame question, and there may even be such
  8043. > something out there somewhere already that does this, but I don't have a
  8044. lot
  8045. > of time to go hunting (and I'm not as involved in AS'ing as many of you
  8046. > obviously are) and this is certainly the right place to ask:
  8047. >
  8048. > Is there some extension, OSAX or such that will give me a visual indication
  8049. > that an AppleScript is running, other than a generic spinning cursor?
  8050. >
  8051. Not that I know of, but see my script below...
  8052.  
  8053. If SITcomm supported the object model (see my other posting griping about
  8054. this) then I'd say you could just change the title of the main window to
  8055. something like "Hey, I'm tryin' to run a script here..."  =)
  8056.  
  8057. > This is bad, since my wife (and myself) will routinely use some
  8058. AppleScripts
  8059. > that I have written for SITcomm to automate connections and such, but on
  8060. > occassion the actions will fail and AS will continue to run until it times
  8061. > out.  She (i) will notice this, and, forgetting that AS is still running
  8062. Sure... blame it on the woman... ;-)
  8063. > try to do whatever and can't until the script has been terminated.
  8064. > A visual indicator besides the boring spinning cursor would be very useful.
  8065. >
  8066. I script SITcomm extensively for the purpose of autologins as well, and have
  8067. encountered several different problems. I'm not sure which one you mean, so
  8068. I'll try to cover as many as I can. Here's a sample script that should show
  8069. you what I mean:
  8070.  
  8071. [Look out for wraparound lines... Oh, and * is the tm sign]
  8072. --cut here--
  8073. copy "Host Name Here" to MySession -- change this to the of your session
  8074. copy "UserId Here" to UserID -- you get the picture...
  8075. copy "Password Here" to Password
  8076. copy "UserID Prompt Here" to UserIDPrompt
  8077. copy "Password Prompt Here" to PasswordPrompt
  8078. copy 20 to TimeoutLength
  8079.  
  8080. (*
  8081. Pretty much everything you'll need to change is up here in a variable.
  8082. On the other hand, it doesn't need to be.  All except TimeoutLength and
  8083. MySession are only used in the one place, so changing them to literals
  8084. there won't break anything...
  8085.  
  8086. This script by Jay Hebert <jayh@laison.w8hd.org>
  8087. If you use it, please leave a comment line attributing me somehow
  8088. *)
  8089.  
  8090. tell application "SITcomm*"
  8091.         activate
  8092.         copy (Get Address List) to AddrList
  8093.         copy (Get Current Address) to CurAdd
  8094.         copy (Get Connection Status) to ConStat
  8095.         if AddrList contains MySession then
  8096.                 if ConStat = 0 then
  8097.                         tell me to GetItOn(MySession)
  8098.                 else if ConStat = -1 then
  8099.                         beep
  8100.                         display dialog "SITcomm was unable to determine the conn
  8101. ection status."
  8102. buttons {"Cancel"} default button 1
  8103.                 else if ConStat = 1 then
  8104.                         if CurAdd is MySession then
  8105.                                 display dialog "You are already connected to \""
  8106.  & MySession & "!\""
  8107. buttons {"Cancel", "Re-Login"} default button 1
  8108.                                 Disconnect
  8109.                                 tell me to GetItOn(MySession)
  8110.                         else
  8111.                                 display dialog "Continuing will close your curre
  8112. nt connection with \"" &
  8113. CurAdd & ".\" Proceed?" with icon 0
  8114.                                 Disconnect
  8115.                                 tell me to GetItOn(MySession)
  8116.                         end if
  8117.                 end if
  8118.         else
  8119.                 display dialog "The address book entry \"" & MySession & "\" doe
  8120. sn't
  8121. exist!" buttons {"Cancel"} default button 1
  8122.         end if
  8123. end tell
  8124.  
  8125. on GetItOn(MySession)
  8126.         tell application "SITcomm*"
  8127.                 Connect MySession
  8128.                 -- The first problem is one of not getting the prompts you expec
  8129. t...
  8130.                 -- No big deal, use timeouts with trys...  Unfortunately, "with
  8131. timeout"
  8132.                 --doesn't seem to work... so do it like this...
  8133.                 try
  8134.                         --Send Text return & return
  8135.                         --That was necessary for my host... you can probably lea
  8136. ve it commented...
  8137.                         Wait For Text UserIDPrompt timeout TimeoutLength
  8138.                         if the result is "" then error
  8139.                         Send Text UserID & return
  8140.                         Wait For Text PasswordPrompt timeout TimeoutLength
  8141.                         if the result is "" then error
  8142.                         Send Text Password & return
  8143.                 on error
  8144.                         display dialog "Something went wrong. You may continue m
  8145. anually." buttons
  8146. {"Cancel"} default button 1
  8147.                 end try
  8148.                 --The next problem is that sometimes my password has been change
  8149. d, or my
  8150. account
  8151.                 --deleted... So I try to cover all bases for what can be thrown
  8152. at me next:
  8153.                 copy (Wait For Text {"Do you wish to register as a new user?", "
  8154. UserID:",
  8155. "[more]", ">"}) to amIin
  8156.                 --amIin will contain whichever item in the list tripped the Wait
  8157. .
  8158.  
  8159.                 if amIin is in {"[more]", ">"} then
  8160.                         -- [more] tells me I'm viewing a long login banner...
  8161.                         -- > is my system's prompt
  8162.                         -- Those are the only two things that I could see and be
  8163.  logged in.
  8164.                         -- Here I could change directories, or whatever I want t
  8165. o do when I first
  8166. log on.
  8167.                         display dialog "That's all I'm gonna do... take over!"
  8168.                 else
  8169.                         if amIin is "Do you wish to register as a new user?" the
  8170. n
  8171.                                 --since I don't want to do that...
  8172.                                 Send Text "n" & return
  8173.                                 --That puts me back to a UserID prompt...
  8174.                         end if
  8175.                         --Either I'm being offered to autoregister, or I'm being
  8176.  refused
  8177. completely...
  8178.                         --In both cases, I'll let the user decide:
  8179.                         copy (display dialog "Could not log in to \"" & MySessio
  8180. n & ".\"  The
  8181. supplied UserID or password is invalid." buttons {"Disconnect", "Manual
  8182. Logon"} default button 1) to NowWhat
  8183.                         if button returned of NowWhat is "Disconnect" then
  8184.                                 Disconnect
  8185.                         end if
  8186.                 end if
  8187.         end tell
  8188. end GetItOn
  8189. --cut here--
  8190.  
  8191. > For example, a little AppleScript icon in the menu bar that blinks on and
  8192. off,
  8193. > or a trite message or even just the AS name, in the same fashion as
  8194. SuperClock,
  8195. > in the menu bar.  Perhaps maybe a dialog box with a CANCEL to obviously
  8196. kill
  8197. > the script.
  8198. This script is more along the lines of that last option...  =)
  8199. I don't use Frontier much, but maybe someone who does can suggest an easy way
  8200. to use Menu Sharing to stick a dummy menu up in the menu bar (this would
  8201. probably be pretty easy too)
  8202.  
  8203. >
  8204. > Does anybody have suggestions, ideas or solutions?
  8205.  
  8206. If you don't wanna try to reassemble this at home on your mac, I've posted
  8207. this to gaea as well...
  8208. My guess is to look for it at around (this is a guess... I sent it to
  8209. /incoming)
  8210.  
  8211. ftp://gaea.kgs.ukans.edu/applescript/scripts/AutoLogin.sit.hqx
  8212.  
  8213. >
  8214. > Thanks in advance,
  8215. >
  8216. > Taylor
  8217. Regards,
  8218. Jay Hebert
  8219. jayh@laison.w8hd.org
  8220.  
  8221.  
  8222. --
  8223.  
  8224. ==========================jayh@laison.w8hd.org=========================
  8225.   Metallica,||   When a man lies he murders / Some part of the world
  8226.    To Live  ||These are the pale deaths which / Men miscall their lives
  8227.      is     ||     All this I cannot bear / To witness any longer
  8228.    To Die   ||     Cannot the kingdom of salvation / Take me home
  8229. =======================================================================
  8230. 1)  These opinions are mine.-==- 2)  Sending me mail gives me
  8231. I'm too self-interested to  -==- permission to reproduce it in any form
  8232. speak for anyone else.      -==- unless otherwise explicitly stated.
  8233. =========================================================================
  8234. Date:         Fri, 12 Aug 1994 15:04:54 EETDST
  8235. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8236. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8237. From:         Tero Loimuneva <Tero.Loimuneva@TH.TELE.FI>
  8238. Subject:      Re: Sender's Address
  8239. In-Reply-To:  <9408110407.AA12860@smtp.tele.fi>; from "Automatic digest
  8240.               processor" at Aug 11, 94 12:00 am
  8241.  
  8242. >>>an osax that called AEGetTheCurrentEvent, and you invoked this from within
  8243. >>>a script handler, would you get a copy of the event currently being handled?
  8244. >>
  8245. >>I thought of the osax too but does the osax get ANYTHING about the original
  8246. >>AppleEvent sent to the whole handler - I doupt.
  8247. >
  8248. >I suspect you are right. Before opening my mouth, I didn't think through the
  8249. >fact that osaxes are invoked as AppleEvent handlers themselves, so a call
  8250. >to AEGetTheCurrentEvent from within an osax would always return the event
  8251. >that invoked the osax!
  8252.  
  8253. Sad but true. I made an osax that would give me the address of the apple
  8254. events (incoming AE, reply AE and AEGetTheCurrentEvent). All had the
  8255. same address which was Current Process (psn=2).
  8256.  
  8257. This still bugs me a bit and one thought came into my mind (forgive me).
  8258. If I can ask the current apple event from the system then why can't I
  8259. get all the AE's that are still waiting to be handled. I mean, System
  8260. has the list of currently handled AE's SOMEWHERE - if I could find that
  8261. list I could check the first psn<>2 AE. But WHERE is the list or HOW
  8262. can I get my hands on it... IM VI nor IM InterApp Communications won't
  8263. tell it - or I'm not trying enough.
  8264.  
  8265.         - Loimu
  8266. =========================================================================
  8267. Date:         Fri, 12 Aug 1994 08:05:39 -0500
  8268. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8269. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8270. From:         Terry Thiel <tthiel@FIREFLY.PRAIRIENET.ORG>
  8271. Subject:      Re: Second edition of Tao book
  8272. In-Reply-To:  <199407291815.AA16412@firefly.prairienet.org>
  8273.  
  8274. Where esle can we order the book?
  8275. -Terry
  8276. =========================================================================
  8277. Date:         Fri, 12 Aug 1994 10:14:14 +0500
  8278. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8279. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8280. From:         Al Austin <aaustin@CMR.COM>
  8281. Subject:      Scripting Problem - Please Help
  8282.  
  8283. Hello, everyone ...
  8284.  
  8285. I just found this list yesterday, so please excuse me if this problem
  8286. has been discussed here before.
  8287.  
  8288. We've been working with AppleScript 1.1 for about two weeks, trying to
  8289. automate some production processes, and have come across an interesting
  8290. situation while writing a script to copy files over a network.
  8291. Hopefully, someone else has also seen this and can offer an explanation
  8292. and/or a solution.  We're using a Quadra 950 with 24mb of RAM and System
  8293. 7.1.
  8294.  
  8295. We have a script that we've saved as an application.  It prompts a user
  8296. for an id number which corresponds to one or more folders residing on
  8297. one or more Novell network drives.  The script goes out to the network,
  8298. finds the folder(s) and copies them to a local drive.  No problems so
  8299. far ... everything works fine.
  8300.  
  8301. After we process the data on the local drive, we need to get rid of it,
  8302. so we've written a cleanup script.  This also works fine.
  8303.  
  8304. This is the problem:  If we execute the transfer script, it remains
  8305. selected in the Finder when it completes execution.  This is normal
  8306. (last icon acted upon and all that) and is to be expected.  But, it
  8307. remains selected when we try to do something else, as if we're shift-clicking,
  8308. whether we try to open a mounted drive or run another script, and when the
  8309. second script starts to run, the first script executes as well.  For example,
  8310. if we run the transfer script, wait for it to complete execution and quit,
  8311. then immediately run the cleanup script, the transfer script will run
  8312. again at the same time as the cleanup script.  We're not shift-clicking
  8313. to select  multiple icons. In fact, we've set up aliases on the desktop so the
  8314. end-user doesn't even need to open the hard drive window.  We've assumed
  8315. that we might be jumping into the second program too quickly, but have
  8316. disproved that. We can sit until the cows come home and there will still
  8317. be two icons selected.  If we run the transfer script and let it complete
  8318. and then double-click on a mounted network drive to verify the copy, the
  8319. transfer script will start up again.  This is most irritating.
  8320.  
  8321. This problem only occurs (so far as we've been able to determine) when
  8322. finderLib is loaded and a tell finderLib instruction contains two or more
  8323. commands, as in:
  8324.  
  8325. with timeout of 3000 seconds
  8326.         tell finderLib
  8327.                 copyFiles from sourceFolder to destVolume with warning
  8328.                 moveFiles from (listFiles at destFolder) to "wherever"
  8329.                         with warning
  8330.                 moveFilesToTrash at destFolder
  8331.                 emptyTrash()
  8332.         end tell
  8333. end timeout
  8334.  
  8335. In the above example, duplicate selection does not occur if three of
  8336. the four steps inside the tell statement are commented out.  Once any
  8337. two are executed, the duplication problem occurs.  We've also tried
  8338. eliminating the timeout, which doesn't solve the problem.  Neither does
  8339. reducing the length of the timeout, although we need the longer timeout
  8340. because some folders are over 200mb in size.  We've also tried
  8341. breaking this section out into four separate tell statements.  It buys us
  8342. an additional command execution, but the problem persists.  We've stepped
  8343. through all the code prior to this timeout section and never have a problem.
  8344. Right now, we're working around the problem by having the operator press
  8345. the TAB key at least twice before selecting any icon after the script
  8346. completes and quits.  An inelegant solution, to say the least.
  8347.  
  8348. Anyone have any ideas or suggestions, or has anyone else had a similar
  8349. experience?
  8350.  
  8351. Thanks in advance for any help.
  8352.  
  8353.  
  8354. ... Al
  8355. =========================================================================
  8356. Date:         Fri, 12 Aug 1994 11:23:48 EDT
  8357. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8358. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8359. From:         Danny Goodman <DGoodman@AOL.COM>
  8360. Subject:      Re: Visual cues that an AppleScript is running
  8361.  
  8362. > Is there some extension, OSAX or such that will give me a visual indication
  8363. > that an AppleScript is running, other than a generic spinning cursor?
  8364.  
  8365. If you use FaceSpan as an interface builder for your app, it produces a
  8366. spinning wheel while scripts execute.
  8367.  
  8368. Danny Goodman
  8369. =========================================================================
  8370. Date:         Fri, 12 Aug 1994 11:56:12 -0500
  8371. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8372. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8373. From:         Roy Eassa <re@ZORK.TIAC.NET>
  8374. Subject:      Re: Second edition of Tao book
  8375.  
  8376. >Where esle can we order the book?
  8377.  
  8378. I don't know.  I picked it up at the Expo.  I imagine the usual sources
  8379. technically-oriented bookstores, mail-order places) will have it.
  8380.  
  8381.  
  8382. --
  8383. Roy Eassa
  8384. re@tiac.net
  8385. =========================================================================
  8386. Date:         Fri, 12 Aug 1994 12:03:14 U
  8387. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8388. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8389. From:         Chris Hanson <chanson@SHORE.NET>
  8390. Subject:      Client Server scripts over AppleTalk
  8391.  
  8392. I was wondering if anyone had made a pair of scripts to hand information to
  8393. eachother over a appletalk network I have worked on Scripts for a while, but
  8394. never tried this, and it is always more fun to have a example to work off of.
  8395.  I do not care waht it does just looking for the communication aspect.
  8396. -chanson@shore.net
  8397. =========================================================================
  8398. Date:         Fri, 12 Aug 1994 12:42:38 EST
  8399. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8400. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8401. From:         Kim-son Tran <ktran@CC.ATINC.COM>
  8402. Subject:      AppleScript & Speech
  8403.  
  8404. >When I give this command to xxx, he replies, error in script, can't set
  8405. >minutes to (and then he says whatever the minutes happen to be)
  8406.  
  8407. >The script is as follows:
  8408. >set d to current date
  8409. >set x to (time of d)
  8410. >set hour to (x div 3600)
  8411. >set x to (x - (hour * 3600))
  8412. >set mins to (x div 60)
  8413. >set secs to (x - (mins * 60))
  8414. >if (hour = 0) then
  8415. >set hourstr to "midnight "
  8416. >else
  8417. >if (hour > 12) then
  8418. >set hour to (hour - 12)
  8419. >end if
  8420. >set hourstr to (hour as string) & " "
  8421. >end if
  8422. >if mins = 0 then
  8423. >if hour = 0
  8424. >set minsstr to " "
  8425. >else
  8426. >set minsstr to "o'clock "
  8427. >end if
  8428. >else
  8429. >set minsstr to (mins as string) & " "
  8430. >end if
  8431. >if secs = 0 then
  8432. >set secsstr to "exactly"
  8433. >else if secs = 1 then
  8434. >set secsstr to "and " & secs as string & " second"
  8435. >else
  8436. >set secsstr to "and " & secs as string & " seconds"
  8437. >end if
  8438. >acknowledge saying (hourstr & minsstr & secsstr) caption (time string of d)
  8439.  
  8440. >What is wrong?  How do I fix it?  I don't know applescript, so if someone can
  8441. >post the correct script, perhaps just by copying from the macro editor, I
  8442. >would really appreciate it.
  8443.  
  8444.  
  8445. >-Mike
  8446.  
  8447. --------------------------------------------------------
  8448.  
  8449. Mike,
  8450.  
  8451. I know this answer is arriving about (1 * day) late but I get the AppleScript
  8452. forum in digest form.
  8453.  
  8454. I'm almost certain that you have the "Audio CD" scripting addition from GTQ
  8455. Library installed. "mins" and "secs" are properties of the track information for
  8456. audio CD. If you take this scripting addition out of your "Scripting Addition"
  8457. folder then recompile (check syntax) you should have no problems. The other
  8458. solution is to change the name of your variables.
  8459.  
  8460. I suggest that you use the script editor's "AppleScript Formatting" feature to
  8461. set colors to represent variables and application keyword (considering you have
  8462. a color capable mac and color monitor). I copied your script to the script
  8463. monitor and compiled it and instantly noticed that you were trying to set the
  8464. result of a formula to an application keyword (that's a no-no). Since I've
  8465. worked with scripting the audio CD, I knew which scripting addition was the
  8466. culprit.
  8467.  
  8468. Anyway, I hope that answers your question.
  8469.  
  8470. Internet:   ktran@cc.atinc.com or tk@cc.atinc.com
  8471. AOL:        kimsont@aol.com
  8472. eWorld:     kimsontran@eworld.com
  8473. =========================================================================
  8474. Date:         Fri, 12 Aug 1994 09:44:45 -0700
  8475. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8476. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8477. From:         Derrick Schneider <derrick@NETCOM.COM>
  8478. Subject:      Re: Second edition of Tao book
  8479. In-Reply-To:  <199408121614.JAA25317@mail2.netcom.com>
  8480.  
  8481. I'm not sure how many BMUG has left over from the show, but we should get
  8482. our stuff back from Boston in a week or so (they come back slow boat).
  8483. You could order it directly from them when that happens.
  8484.  
  8485. It should start showing up in bookstores in a month or so. I don't
  8486. honestly know Hayden's production schedule for getting them out to stores.
  8487.  
  8488. One would think I would know more about this, wouldn't one?
  8489.  
  8490. Derrick
  8491. BMUG's lines:
  8492. 510-549-2684 business office (voicemail system, be patient)
  8493. 510-849-9026 fax
  8494.  
  8495. Hope that helps
  8496. =========================================================================
  8497. Date:         Fri, 12 Aug 1994 14:02:31 -0400
  8498. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8499. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8500. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  8501. Subject:      Re: finder processes...
  8502. In-Reply-To:  <no.id> from "Steven L. Rohall" at Aug 11, 94 06:33:00 pm
  8503.  
  8504. --Steven L. Rohall wrote:
  8505. >
  8506. >When I try something like:
  8507. >
  8508. >tell application "Finder"
  8509. >  every process
  8510. >end tell
  8511. >
  8512. >I get only application processes.  But when I use "list processes" from the
  8513. >Script Tools osaxen, I get all processes, even faceless, background apps.
  8514. >For my simple script, I'd like to have all processes listed.  Is there
  8515. >anyway to duplicate this behavior with the scriptable finder?
  8516.  
  8517.     Unfortunately, the Scriptable Finder doesn't seem to know about
  8518. background processes. You can use the about this macintosh property of
  8519. the SF to get the Finder as a process and the System Software as a
  8520. process, but that's about it.
  8521.  
  8522. -Hades
  8523. =========================================================================
  8524. Date:         Fri, 12 Aug 1994 15:31:21 -0400
  8525. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8526. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8527. From:         Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
  8528. Subject:      Re: Client Server scripts over AppleTalk
  8529.  
  8530. >I was wondering if anyone had made a pair of scripts to hand information to
  8531. >eachother over a appletalk network I have worked on Scripts for a while, but
  8532. >never tried this, and it is always more fun to have a example to work off of.
  8533. > I do not care waht it does just looking for the communication aspect.
  8534. >-chanson@shore.net
  8535.  
  8536. I have been using applescript to add a client - server element to my
  8537. Filemaker databases.  There are some flaky things about it but it has a lot
  8538. of potential.  The key is to have an applet running on both the client and
  8539. host Mac and program linking under sharing setup must be on.  Once you have
  8540. done that you can call routines across the network with the following
  8541. simple command:
  8542. tell application "host applet" of machine "host machine" of zone "host
  8543. machines zone" to hostRoutine()
  8544. It will then execute the command.  They can be tricky to debug so you will
  8545. want to get them working properly locally before running them over the net.
  8546.  
  8547. Mark Hadfield
  8548. hadfield@sickkids.on.ca
  8549.  
  8550. Mark Hadfield
  8551. hadfield@sickkids.on.ca
  8552. The Hosptial For Sick Children
  8553. =========================================================================
  8554. Date:         Fri, 12 Aug 1994 15:15:57 -0400
  8555. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8556. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8557. From:         John Schettino <js12@GTE.COM>
  8558. Subject:      The Netnews Filter Agent for the Macintosh!
  8559.  
  8560. <I just put this in the /incoming directory as NewNews.sit.hqx>
  8561.  
  8562. The Netnews Filter Agent for the Macintosh. A suite of three
  8563. applications that make dealing with Netnews simple.
  8564.  
  8565. By John C. Schettino, Jr. (js12@gte.com)
  8566.  
  8567. These applications were developed with AppleScript 1.1 and FaceSpan
  8568. 1.0 using the Scripter's Toolkit.
  8569.  
  8570. A preliminary version of these applications won an Honorable Mention in the
  8571. "Everyday AppleScript Contest". This version represents the first public release
  8572. of that software.
  8573.  
  8574. The Netnews Filter Agent consists of three Applications:
  8575.  
  8576. * The NetNews Grazer (NNG)
  8577.  
  8578. This is an AppleScript application that interacts with an NNTP News server.
  8579. It will check for new messages on a regular basis, and will either
  8580. scan the subjects of the new messages or send email when new messages arrive.
  8581.  
  8582. * The NetNews Grazer Prefs
  8583.  
  8584. This is a FaceSpan application that lets you specify:
  8585.  
  8586. - The NNTP Server Name
  8587. - The SMTP Server Name
  8588. - The rate (in minutes) that NNG checks for new messages
  8589. - The email address to send the notifying email message from
  8590. - The email address to send the notifying email message to
  8591. - The set of news groups to watch, and what to look for
  8592.  
  8593. For each group, you may specify a list of substrings that you want to
  8594. look for. When a subject containing one of these strings is found, NNG saves the
  8595. article number.
  8596.  
  8597. If you do not specify any search strings for a group, you
  8598. will be notified via email (using SMTP) whenever new news arrives.
  8599.  
  8600. * Read interesting news
  8601.  
  8602. This is a FaceSpan application that lets you read the matching news articles.
  8603. It provides basic reading capabilities and is patterned after
  8604. the Internews reader from Dartmouth.
  8605.  
  8606. Cost:
  8607. -----
  8608. I've put a lot of effort into this project, so I've decided to
  8609. release locked versions of these three apps as Freeware. You may use
  8610. them without guilt.
  8611.  
  8612. With a $20 US shareware payment you'll get an upgraded version. Please
  8613. see the enclosed Read Me file.
  8614.  
  8615. System Requirements:
  8616. --------------------
  8617. Access to an NNTP News Server. Access to an SMTP Mail Server (if you want email
  8618. notification.)
  8619.  
  8620. System 7.x, AppleScript 1.1, FaceSpan 1.0, and the MacTCP system
  8621. extensions. The TCP/IP and AppleScript 1.1 Scripting Additions.
  8622.  
  8623. - john
  8624.  
  8625. -----------------------------------------
  8626. js12@gte.com             GTE Laboratories
  8627. John Schettino                Waltham, MA
  8628. =========================================================================
  8629. Date:         Fri, 12 Aug 1994 13:16:34 -0800
  8630. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8631. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8632. From:         Mark Alldritt <alldritt@WIMSEY.COM>
  8633. Subject:      Re: Default folder
  8634.  
  8635. Hello All,
  8636.  
  8637. The Set Default Folder command (in the Choose Files & Folders addition of
  8638. Script Tools) changes the default volume and folder of the *current*
  8639. application.
  8640.  
  8641. The effect of the Set Default Folder command is dependant on the behaviour
  8642. of the other software components you are using.  For instance, some
  8643. applications (like the Finder I think) activly manipulate the default
  8644. volume and folder.
  8645.  
  8646. You can use the Set Default Folder and the File IO commands of Script Tools
  8647. together.  I have also found that the following *generally* works:
  8648.  
  8649. tell applications "XYZ App"
  8650.     set default folder (choose folder with prompt "Pick a default folder:")
  8651.     open "my file" -- or whatever
  8652. end tell
  8653.  
  8654. Note that in this example, the Set Default Folder command is executed in
  8655. the context of the application.  However, the following code would have a
  8656. completly different effect.
  8657.  
  8658. set default folder with prompt "Pick a default folder:"
  8659. tell application "XYZ App"
  8660.     open ...
  8661. end tell
  8662.  
  8663. A final note: apparently, in System 7.5, the way the default volume and
  8664. folder setting operates is going to change, and so the Set Default Folder
  8665. may not work as it does now.
  8666.  
  8667. -Mark
  8668. =========================================================================
  8669. Date:         Fri, 12 Aug 1994 16:33:23 +0000
  8670. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8671. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8672. From:         Gib Veconi <Gib_Veconi@SCP.COM>
  8673. Subject:      Calling AppleEvents with AI
  8674.  
  8675. I'm trying to find some info on how to call AppleEvents directly from
  8676. AppleScript so I can control an AE-aware, but non-scriptable, application (
  8677. GeoQuery). I've opened scripts before which have shown what looks like
  8678. AppleEvent notation in angle brackets, but I can't find any reference in the
  8679. AppleScript manuals to explain this usage.
  8680.  
  8681. If anyone knows a good source for this info (or has done work with GeoQuery
  8682. and AppleScript), I'd be grateful to hear from you. Thanks.
  8683.  
  8684. Gib Veconi
  8685. gib@scp.com
  8686. =========================================================================
  8687. Date:         Fri, 12 Aug 1994 13:45:02 -0700
  8688. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8689. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8690. From:         Mike Cohen <isis@NETCOM.COM>
  8691. Subject:      Re: Calling AppleEvents with AI
  8692. In-Reply-To:  <199408122032.NAA05740@mail.netcom.com> from "Gib Veconi" at Aug
  8693.               12, 94 04:33:23 pm
  8694.  
  8695. >
  8696. > I'm trying to find some info on how to call AppleEvents directly from
  8697. > AppleScript so I can control an AE-aware, but non-scriptable, application (
  8698. > GeoQuery). I've opened scripts before which have shown what looks like
  8699. > AppleEvent notation in angle brackets, but I can't find any reference in the
  8700. > AppleScript manuals to explain this usage.
  8701. >
  8702. > If anyone knows a good source for this info (or has done work with GeoQuery
  8703. > and AppleScript), I'd be grateful to hear from you. Thanks.
  8704. >
  8705. > Gib Veconi
  8706. > gib@scp.com
  8707. >
  8708. I haven't seen too much about that notation, but the format is
  8709.  
  8710. Tell application "whatever" to
  8711.         <<event XXXXYYYY>> <<class ZZZZ>> some value
  8712. End Tell
  8713.  
  8714. Of course "<<" and ">>" are realy opt-\ and shift-opt-\. There's a trick to
  8715. getting AppleScript to display a compiled script in that format by getting
  8716. rid of the application it refers to, but I can't remember the details offhand.
  8717.  
  8718. I've worked a little bit with GeoQuery (but in 4D rather than AppleScript);
  8719. their AppleEvent handling is *very* weird - it involves a 2-way conversation
  8720. where you send it a request and it will send you one or more separate events
  8721. with the results (rather than using the AppleEvent reply). For anyone working
  8722. with 4D who wants to figure out their events, I have the demo available at
  8723. ftp://ftp.netcom.com/pub/isis/System7Pack/S7P.GeoQuery.hqx.
  8724.  
  8725. --
  8726. Mike Cohen           | ISIS International
  8727. (818) 788-4747 Voice | isis@netcom.com           | ALink: D6734
  8728. (818) 501-0653 Fax   | NewtonMail, eWorld: MikeC | AOL: MikeC20
  8729. Home Page: file://ftp.netcom.com/pub/isis/home.html
  8730. =========================================================================
  8731. Date:         Fri, 12 Aug 1994 17:33:13 -0500
  8732. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8733. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8734. From:         Fred Terry <pfterry@LKS.CSI.COM>
  8735. Subject:      NetNews scripts
  8736.  
  8737. Everyone,
  8738.  
  8739. You'll find John Schettino's NetNews scripts in
  8740.  
  8741. ftp://gaea.kgs.ukans.edu/applescript/scripts/NetNews.sit.hqx
  8742.  
  8743.  
  8744. Enjoy and have a nice weekend.
  8745.  
  8746. pf
  8747. =========================================================================
  8748. Date:         Fri, 12 Aug 1994 15:54:15 -0800
  8749. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8750. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8751. From:         "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
  8752. Subject:      ScriptWizard v. Script Editor
  8753.  
  8754. I've been playing around with a demo version of Script Wizard, trying to
  8755. see if I liked it enough to push for a purchase.  It seems very cool,
  8756. except for two problems:
  8757.  
  8758. A) It's slow -- opening up two AS compiled scripts (saved as apps), with a
  8759. total of 64K of code, took about 21 seconds longer than in Script Editor,
  8760. for example.  SE took 26 seconds to start up and load both scripts in ; SW
  8761. took about 47 seconds; you might want to knock off half a second for
  8762. clicking the 'this is a demo' dialog box.  Similarly, saving and compiling
  8763. times are also longer.  Anybody know if there's a fix for this?
  8764.  
  8765. B) It's jerky -- when it's slow, it's not consistently slow.  It freezes
  8766. for a second, then releases, etc.  It's not as smooth as SE...
  8767.  
  8768. -roy
  8769.  
  8770. Roy S. Rapoport                                       rsr@berksys.com
  8771. 2095 Rose St                                    Berkeley   CA   94709
  8772. =========================================================================
  8773. Date:         Sat, 13 Aug 1994 13:29:26 +0200
  8774. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8775. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8776. From:         Dario Lopez K=E4sten <cl2dlope@HAL.CLING.GU.SE>
  8777. Subject:      Re: Sender's address
  8778.  
  8779. (Stuff deleted)
  8780. >Just a thought: my AppleEvent utilities for HyperCard include an XFCN calle=
  8781. d
  8782. >AEGetTheCurrentEvent, which calls the AppleEvent Manager routine of the sam=
  8783. e
  8784. >name. With current versions of HyperCard, you can call this from within an
  8785. >"On AppleEvent" handler, and get a complete copy of the current event this =
  8786. way.
  8787. >
  8788. >My idea is: would a similar thing work from AppleScript as well? If you had
  8789. >an osax that called AEGetTheCurrentEvent, and you invoked this from within
  8790. >a script handler, would you get a copy of the event currently being handled=
  8791. ?
  8792. >
  8793. >Yeah, sure, I could probably write it first, and then find out whether it
  8794. >works,
  8795. >but you know what us lazy programmers are like... :-)
  8796. >
  8797. >Lawrence D'Oliveiro                       fone: +64-7-856-2889
  8798. >Info & Tech Services Division              fax: +64-7-838-4066
  8799. >University of Waikato            electric mail: ldo@waikato.ac.nz
  8800. >Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  8801.  
  8802. I think that the ability to manipulate the AERecord from with in
  8803. AppleScript is a good idea in general. Too bad it is not implemeted
  8804. directly in AS.
  8805.  
  8806. /dario
  8807.  
  8808. ____________________________________________________________________________=
  8809. __
  8810. Dario Lopez K=E4sten, student of        |   S=F6dra v=E4gen 81
  8811. Computational Linguistics             |   412  54 G=F6teborg, Sweden
  8812. G=F6teborg University, SWEDEN           |   +46 31 778 18 58
  8813. ----------------------------------------------------------------------------=
  8814. --
  8815. Do not hesitate to send e-mail to my son. Put "To Felix" in the subject fiel=
  8816. d.
  8817. He is now 10 months old. And the cutest in the world.
  8818.  
  8819. "This is the working hour. We are paid by those who learn from our mistakes"
  8820.  /Tears for Fears
  8821. ____________________________________________________________________________=
  8822. __
  8823. =========================================================================
  8824. Date:         Sat, 13 Aug 1994 10:53:15 -0600
  8825. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8826. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8827. From:         Tom Donovan <donovan@COVIS.NWU.EDU>
  8828. Subject:      Re: Client Server scripts over AppleTalk
  8829.  
  8830. >I was wondering if anyone had made a pair of scripts to hand information to
  8831. >eachother over a appletalk network I have worked on Scripts for a while, but
  8832. >never tried this, and it is always more fun to have a example to work off of.
  8833. > I do not care waht it does just looking for the communication aspect.
  8834. >-chanson@shore.net
  8835.  
  8836. I put together a *very* simple applet whose only job was to wait for an
  8837. apple event and put up a dialog box with the text that was passed to it.
  8838.  
  8839. I called it "Beeper", and it consists of the following handler:
  8840.  
  8841. on respond(theText)
  8842.         beep
  8843.         display dialog theText
  8844.         beep
  8845. end respond
  8846.  
  8847. With Beeper running on one machine, write a script on another with code
  8848. that is something like this:
  8849.  
  8850. tell application "Beeper" of machine "Mac" of zone "Name"
  8851.         respond("Hello")
  8852. end tell
  8853.  
  8854. I may not have the syntax of the "tell" statement exactly right, but that's
  8855. the general idea.
  8856.  
  8857. --Tom
  8858.  
  8859. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  8860. Tom Donovan             "The city is a place where a small boy, as he walks
  8861. Technology Facilitator   through it, may see something that will tell him
  8862. Glen Grove School        what he wants to do his whole life."
  8863. Glenview, Illinois                                          --Louis I. Kahn
  8864. E-mail: donovant@ncook.k12.il.us, donovan@covis.nwu.edu
  8865. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  8866. =========================================================================
  8867. Date:         Sat, 13 Aug 1994 14:01:19 PDT
  8868. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8869. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8870. From:         Joe Scripter <MikeL@EWORLD.COM>
  8871. Subject:      Re: Client Server scripts over AppleTalk
  8872.  
  8873. Check the OSAX Command list
  8874. =========================================================================
  8875. Date:         Sun, 14 Aug 1994 14:47:41 -0700
  8876. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8877. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8878. From:         Rob Dewhirst <robd@FARALLON.COM>
  8879. Subject:      OtherMenu 1.5
  8880.  
  8881. I have uploaded OtherMenu 1.5 to gaea.  As of v1.4, it has the ability to
  8882. execute compiled AppleScripts.  1.5 fixed some problems with this, and added
  8883. support for running KeyQuencer macro files.
  8884.  
  8885. If you use OSAMenu, you may want to check out OtherMenu.
  8886. =========================================================================
  8887. Date:         Mon, 15 Aug 1994 10:04:00 +1200
  8888. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8889. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8890. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  8891.               NZ" <LDO@WAIKATO.AC.NZ>
  8892. Subject:      Auditing Your Additions
  8893.  
  8894. There was a discussion on this mailing list a few days ago about people having
  8895. so many osaxes in their Scripting Additions folder that they were losing track
  8896. of which ones did what. I decided to come up with a solution to the problem.
  8897.  
  8898. My solution takes the form of yet another scripting addition, which I call
  8899. EightyLister. This implements two commands: "list events" will list a summary
  8900. of the events defined in an aete resource in any file. "scripting additions
  8901. folder" returns an alias to your Scripting Additions folder, and I've provided
  8902. basic example scripts so you can see how to use these two to list all the events
  8903. defined by your currently-installed osaxes.
  8904.  
  8905. I've dropped a copy in the incoming directory on gaea.kgs.ukans.edu. Enjoy!
  8906.  
  8907. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  8908. Info & Tech Services Division              fax: +64-7-838-4066
  8909. University of Waikato            electric mail: ldo@waikato.ac.nz
  8910. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  8911. =========================================================================
  8912. Date:         Sun, 14 Aug 1994 14:57:05 -0500
  8913. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8914. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8915. From:         flip <flip@BOGIE2.BIO.PURDUE.EDU>
  8916. Subject:      Scripting PowerTalk
  8917.  
  8918. Has anyone been scripting PowerTalk yet?
  8919.  
  8920. Specifically the owner's in box and AppleMail?
  8921.  
  8922. Flip
  8923.  
  8924.          __@     Phillip 'Flip' Russell  | Purdue University      __@
  8925.   _ -_,_-\<,_ flip@bogie2.bio.purdue.edu | West Lafayette, IN  _ -\<,_
  8926.  (_)-----/-(_)           The important things...             (_)-/-(_)
  8927.                         My bikes and my Macintosh
  8928.  
  8929.  
  8930.  
  8931.  
  8932.  
  8933. ------------------ Nested Letter Follows ------------------
  8934. Received: by bogie2.bio.purdue.edu with SMTP;14 Aug 1994 16:55:13 -0500
  8935. Received: from bogie2.bio.purdue.edu by mentor.cc.purdue.edu (5.61/Purdue_CC)
  8936.         id AA00480; Sun, 14 Aug 94 16:56:37 -0500
  8937. Date: Sun, 14 Aug 94 16:56:37 -0500
  8938. From: MAILER-DAEMON@mentor.cc.purdue.edu (Mail Delivery Subsystem)
  8939. Subject: Returned mail: Host unknown
  8940. Message-Id: <9408142156.AA00480@mentor.cc.purdue.edu>
  8941. To: <flip@bogie2.bio.purdue.edu>
  8942.  
  8943.    ----- Transcript of session follows -----
  8944. 550 <@VM.CC.PURDUE.EDU#c#MACSCRPT@DARTCMS1>... Host unknown
  8945.  
  8946.    ----- Unsent message follows -----
  8947. Received: from bogie2.bio.purdue.edu by mentor.cc.purdue.edu (5.61/Purdue_CC)
  8948.         id AA00478; Sun, 14 Aug 94 16:56:37 -0500
  8949. Message-Id: <9408142156.AA00478@mentor.cc.purdue.edu>
  8950. Date: 14 Aug 1994 14:54:54 -0500
  8951. From: "flip" <flip@bogie2.bio.purdue.edu>
  8952. Subject: Scripting PowerTalk
  8953. To: "Macintosh Scripting Systems" <@VM.CC.PURDUE.EDU#c#MACSCRPT@DARTCMS1>
  8954.  
  8955. Has anyone been scripting PowerTalk yet?
  8956.  
  8957. Specifically the owner's in box and AppleMail?
  8958.  
  8959. Flip
  8960.  
  8961.          __@     Phillip 'Flip' Russell  | Purdue University      __@
  8962.   _ -_,_-\<,_ flip@bogie2.bio.purdue.edu | West Lafayette, IN  _ -\<,_
  8963.  (_)-----/-(_)           The important things...             (_)-/-(_)
  8964.                         My bikes and my Macintosh
  8965.  
  8966.  
  8967.  
  8968.  
  8969. ------------------ End of Nested Letter ------------------
  8970. =========================================================================
  8971. Date:         Sun, 14 Aug 1994 18:43:31 +22306620
  8972. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8973. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8974. From:         Abner Dumoff <abbyd@FREENET.SCRI.FSU.EDU>
  8975. Subject:      Re: Visual cues that an AppleScript is running
  8976. In-Reply-To:  <199408130806.AA17196@freenet3.scri.fsu.edu>
  8977.  
  8978. > > Is there some extension, OSAX or such that will give me a visual indication
  8979. > > that an AppleScript is running, other than a generic spinning cursor?
  8980. >
  8981. > If you use FaceSpan as an interface builder for your app, it produces a
  8982. > spinning wheel while scripts execute.
  8983. >
  8984. > Danny Goodman
  8985.  
  8986. Is there a way to implement a custom animated cursor for wait indication
  8987. in (or out of) FaceSpan? Without using ResEdit?
  8988.  
  8989. -AbbyD
  8990. =========================================================================
  8991. Date:         Sun, 14 Aug 1994 23:38:27 -0700
  8992. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8993. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8994. From:         Jon Pugh <jonpugh@NETCOM.COM>
  8995. Subject:      Re: Visual cues that an AppleScript is running
  8996.  
  8997. From:    Abner Dumoff <abbyd@FREENET.SCRI.FSU.EDU>
  8998. >
  8999. >> > Is there some extension, OSAX or such that will give me a visual indication
  9000. >> > that an AppleScript is running, other than a generic spinning cursor?
  9001. >>
  9002. >> If you use FaceSpan as an interface builder for your app, it produces a
  9003. >> spinning wheel while scripts execute.
  9004. >>
  9005. >> Danny Goodman
  9006. >
  9007. >Is there a way to implement a custom animated cursor for wait indication
  9008. >in (or out of) FaceSpan? Without using ResEdit?
  9009.  
  9010. I've added a new osax named "set cursor to" to Jon's Commands which accepts
  9011. a set of enums (watch cursor, plus cursor, cross cursor and arrow cursor).
  9012. It seems to work fine, although a number of programs still set their
  9013. cursors when you move the mouse over different areas.  That means you may
  9014. need to set the cursor often.
  9015.  
  9016. I'm trying to decide on the best ways to do the custom busy procedure.  It
  9017. will be simple enough to include a set of common busy cursors that you can
  9018. choose from.  That would be the beachball and the watch.  I'm taking
  9019. suggestions for others.  I have a fairly large cursor collection, so I'll
  9020. paw through it and see what shows up.
  9021.  
  9022. I guess the only way to do a custom one is to provide a file and the
  9023. resource id of the acur resource.  What this means is that you need to use
  9024. ResEdit to create the cursor resources.  These are the acur resource which
  9025. lists the order of the CURS or crsr resources.  The CURS resource is a b&w
  9026. cursor while a crsr is a color cursor.  There could be programs out there
  9027. to make cursors, but I've never seen one, and ResEdit works fine.  Why not
  9028. use it?  You haven't been listening to those "ResEdit is dangerous"
  9029. warnings, have you?  Pah!  Life is dangerous.  Go for it.  ;)
  9030.  
  9031. Jon
  9032. =========================================================================
  9033. Date:         Mon, 15 Aug 1994 07:09:25 -0400
  9034. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9035. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9036. From:         Kiran Wagle <groo@NETCOM.COM>
  9037. Subject:      Cut from one app, paste to another
  9038.  
  9039. I couldn't think of a better subject.  Sorry.
  9040.  
  9041. I want to write a script that can take the currently selected text from one
  9042. app and paste it into another app--namely, to be able to make a reply in
  9043. Eudora to text from my terminal window or a new message to an address
  9044. selected in same.  BUT, after reading the discussion of the past few days,
  9045. I wonder if this is possible?
  9046.  
  9047. So-can I find out what was active immediately before my script was run from
  9048. OSA Menu??  Having that, I assume I could use somethign like AutoType to
  9049. cut from one app and paste to another.... Or do scripts run via OSA Menu
  9050. run in the background already?
  9051.  
  9052. Thanks,
  9053.  
  9054. ~ Kiran
  9055.  
  9056.  
  9057.  
  9058.  
  9059. --
  9060. 6216 41st Avenue Hyattsville MD 20782 301/779-0756 <groo@netcom.com>
  9061. =========================================================================
  9062. Date:         Mon, 15 Aug 1994 09:00:27 EDT
  9063. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9064. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9065. From:         "Andy J. Williams" <Andy.J.Williams@DARTMOUTH.EDU>
  9066. Subject:      MS: Monthly Harrange
  9067.  
  9068. Save this mail message. It includes all the e-mail addresses you need when
  9069. dealing with the Mac Scripting mailing list.
  9070.  
  9071. *** To Unsubscribe from this list:
  9072.  
  9073. Send to: LISTSERV@dartmouth.edu
  9074. Subject: unsubscribe
  9075. Message: signoff macscrpt
  9076.  
  9077.  
  9078. *** To subscribe to this list:
  9079.  
  9080. Send to: LISTSERV@dartmouth.edu
  9081. Subject: subscribe
  9082. Message: subscribe macscrpt <your full name here>
  9083.  
  9084.  
  9085. *** To receive the mail as daily digest:
  9086.  
  9087. Send to: LISTSERV@dartmouth.edu
  9088. Subject: digest
  9089. Message: set macscrpt digest
  9090.  
  9091.  
  9092. *** To get other info on using this automated system:
  9093.  
  9094. Send to: LISTSERV@dartmouth.edu
  9095. Subject: help
  9096. Message: help
  9097.  
  9098.  
  9099. *** To ask the human moderators a question:
  9100.  
  9101. Send to: MacScripting-Request@dartmouth.edu
  9102.  
  9103.  
  9104. *** To send a message to the mailing list:
  9105.  
  9106. Send to: MacScripting@dartmouth.edu
  9107.  
  9108.  
  9109. Thanks.
  9110.  
  9111. -The Moderators (a very offcial way of saying "Fred & Andy")
  9112. =========================================================================
  9113. Date:         Mon, 15 Aug 1994 10:10:38 -0500
  9114. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9115. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9116. From:         Fred Terry <pfterry@LKS.CSI.COM>
  9117. Subject:      Re: OtherMenu 1.5 and EightyLister
  9118. In-Reply-To:  Your message of "Sun, 14 Aug 94 14:47:41 PDT"
  9119.  
  9120. Thanks to Rob Dewhurst and Lawrence D'Oliverio you'll find OtherMenu 1.5 and
  9121. the EightyLister osax on gaea in
  9122.  
  9123. ftp://gaea.kgs.ukans.edu/applescript/osaxen/EightLister.hqx
  9124. ftp://gaea.kgs.ukans.edu/applescript/addons/OtherMenu1.5.sit.hqx
  9125.  
  9126. Enjoy.
  9127.  
  9128. pf
  9129. =========================================================================
  9130. Date:         Mon, 15 Aug 1994 09:01:46 -0700
  9131. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9132. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9133. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  9134. Subject:      Re: Cut from one app, paste to another
  9135.  
  9136. At 07:09 8/15/94 -0400, Kiran Wagle wrote:
  9137. >I want to write a script that can take the currently selected text from one
  9138. >app and paste it into another app--namely, to be able to make a reply in
  9139. >Eudora to text from my terminal window or a new message to an address
  9140. >selected in same.  BUT, after reading the discussion of the past few days,
  9141. >I wonder if this is possible?
  9142. >
  9143. >So-can I find out what was active immediately before my script was run from
  9144. >OSA Menu??  Having that, I assume I could use somethign like AutoType to
  9145. >cut from one app and paste to another.... Or do scripts run via OSA Menu
  9146. >run in the background already?
  9147.  
  9148. Finding out what is active when a selection is made from the OSA Menu menu
  9149. is easy, because the script is running "in" the then-active application.
  9150. Given the Scriptable Finder, you write:
  9151.  
  9152. tell application "Finder"
  9153.     set foo to processes where frontmost is true
  9154. end tell
  9155. if foo is {} then
  9156.     set bar to application "Finder"
  9157. else
  9158.     set bar to foo
  9159. end if
  9160. -- at this point, bar is a reference to the active application
  9161. display dialog bar as string
  9162.  
  9163.  
  9164. Note the special case for Finder.  The current Scriptable Finder doesn't
  9165. like to admit that it is a process (some future version, according to the
  9166. Finder Scripting Guide, will be less bashful).  So processes where
  9167. frontmost is true is an empty list if Finder is the active application.
  9168.  
  9169. The problem discussed here recently involves a different task:  finding out
  9170. what process was active before a new one was started.  I'm not at all sure
  9171. that one is doable without reverse engineering.
  9172.  
  9173.    --John
  9174.  
  9175. --
  9176. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  9177. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  9178. =========================================================================
  9179. Date:         Mon, 15 Aug 1994 09:27:39 -0700
  9180. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9181. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9182. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  9183. Subject:      Re: Cut from one app, paste to another
  9184.  
  9185. At 07:09 8/15/94 -0400, Kiran Wagle wrote:
  9186. >I couldn't think of a better subject.  Sorry.
  9187. >
  9188. >I want to write a script that can take the currently selected text from one
  9189. >app and paste it into another app--namely, to be able to make a reply in
  9190. >Eudora to text from my terminal window or a new message to an address
  9191. >selected in same.  BUT, after reading the discussion of the past few days,
  9192. >I wonder if this is possible?
  9193. >
  9194. >So-can I find out what was active immediately before my script was run from
  9195. >OSA Menu??  Having that, I assume I could use somethign like AutoType to
  9196. >cut from one app and paste to another.... Or do scripts run via OSA Menu
  9197. >run in the background already?
  9198.  
  9199. And I previously provided a short snippet for finding the front process in
  9200. your context.
  9201.  
  9202.   However...since the details of getting the current selection out of an
  9203. application in useful form vary (simple script in some cases--but not all
  9204. the same script, hack with UI player in others, and perhaps impossible for
  9205. some), you might consider writing a specific script for each source
  9206. application of interest, and putting it in the app-specific folder for OSA
  9207. Menu, rather than in the Universal folder.
  9208.  
  9209.    --John
  9210.  
  9211. --
  9212. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  9213. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  9214. =========================================================================
  9215. Date:         Mon, 15 Aug 1994 09:34:34 -0700
  9216. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9217. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9218. From:         Alec Plumb <aplumb@UCSD.EDU>
  9219. Subject:      ignoring application responses
  9220.  
  9221. Hello,
  9222. I have been using the Fetch Clipboard script, which came with Anarchie,
  9223. with OSA menu to pull down some of the many URLs that come my way.  At
  9224. first I had a problem with the script tying my machine up forever, waiting
  9225. for a response from Anarchie, which doesn't send a response until the file
  9226. has actually been recieved.  So I found the nifty little "ignoring
  9227. application responses" command in the Applescript manual (yes, I actually
  9228. Read The F'ing Manual :).  At which point the relevant part of the script
  9229. looked like:
  9230.  
  9231. tell application "Anarchie"
  9232.         ignoring application responses
  9233.                 set theResult to fetch url theurl
  9234.         end ignoring
  9235. end tell
  9236.  
  9237. Now whenever I run the script, I get a dialog box with the following message:
  9238.  
  9239. An error of type -1753 occured while running the script named "Fetch Clipboard."
  9240.  
  9241. The scripting system reported that "no result was returned from some part
  9242. of this
  9243.  
  9244. That's all the text that the dialog box has space for.  When I click the OK
  9245. button, I see that Anarchie is going on it's merry way, downloading the
  9246. file I asked for, and I can continue with what I was doing.  So I'd like to
  9247. know why I get an error, even though everything seems to work just fine,
  9248. especially since I explicitly told the script to _ignore_ application
  9249. responses.  (By the way, I tried removing the "set theResult to" part, and
  9250. Anarchie barfed on the command.)  And I'd like to know why the dialog box
  9251. is too small for the error message.  Is this a function of OSA menu?  Would
  9252. OtherMenu do a better job?
  9253.  
  9254. Thanks,
  9255.  
  9256.  
  9257. Alec Plumb      \\  W:619/534-5999 \\  Forever trust in who we are,
  9258. aplumb@ucsd.edu  \\  H:619/294-2112 \\  And nothing else matters
  9259. MacSupport\\ IGPP \\  SIO  \\  UCSD  \\   - J. Hetfield
  9260. =========================================================================
  9261. Date:         Mon, 15 Aug 1994 09:46:30 -0800
  9262. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9263. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9264. From:         Robert Mark <rmark@ISDMNL.WR.USGS.GOV>
  9265. Subject:      Re: OtherMenu 1.5 and EightyLister
  9266.  
  9267. >Thanks to Rob Dewhurst and Lawrence D'Oliverio you'll find OtherMenu 1.5 and
  9268. >the EightyLister osax on gaea in
  9269. >
  9270. >ftp://gaea.kgs.ukans.edu/applescript/osaxen/EightLister.hqx
  9271.  
  9272.  
  9273. When I run "List Additions" (EightyLister), after running for some time, I
  9274. get a "Resource wasn't found" error at:
  9275.  "list events file (AdditionsFolder & ThisFile)"
  9276.  
  9277. Bob Mark
  9278. USGS
  9279.  
  9280. Robert Mark                           rmark@isdmnl.wr.usgs.gov
  9281. US Geological Survey                  415-329-4917
  9282. 345 Middlefield Road  MS-975          415-329-4936 FAX
  9283. Menlo Park, CA 94025
  9284. =========================================================================
  9285. Date:         Mon, 15 Aug 1994 15:13:05 -0400
  9286. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9287. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9288. From:         Abner Dumoff <abbyd@FREENET.SCRI.FSU.EDU>
  9289. Subject:      Re: Visual cues that an AppleScript is running
  9290. In-Reply-To:  <199408150835.AA19752@freenet3.scri.fsu.edu>
  9291.  
  9292. On Sun, 14 Aug 1994, Jon Pugh wrote:
  9293.  
  9294. (previous messages deleted.)
  9295. >
  9296. > I guess the only way to do a custom one is to provide a file and the
  9297. > resource id of the acur resource.  What this means is that you need to use
  9298. > ResEdit to create the cursor resources.  These are the acur resource which
  9299. > lists the order of the CURS or crsr resources.  The CURS resource is a b&w
  9300. > cursor while a crsr is a color cursor.  There could be programs out there
  9301. > to make cursors, but I've never seen one, and ResEdit works fine.  Why not
  9302. > use it?  You haven't been listening to those "ResEdit is dangerous"
  9303. > warnings, have you?  Pah!  Life is dangerous.  Go for it.  ;)
  9304. >
  9305. > Jon
  9306. >
  9307. I have been using ResEdit to customise the Icons for apps created in
  9308. FaceSpane. I have no problem with the idea of making resources for a
  9309. custom animated cursor. I was hesitant to replace the one that FaceSpan
  9310. provides, as I didn't want to risk muddling up their code-to-resource
  9311. connections. I love ResEdit! I take LOTS of risks. Just hours ago,
  9312. I was jaywalking in midtown Manhattan!
  9313.  
  9314. -Abby
  9315. =========================================================================
  9316. Date:         Mon, 15 Aug 1994 12:31:16 -0700
  9317. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9318. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9319. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  9320. Subject:      Re: ignoring application responses
  9321.  
  9322. >Hello,
  9323. >I have been using the Fetch Clipboard script, which came with Anarchie,
  9324. >with OSA menu to pull down some of the many URLs that come my way.  At
  9325. >first I had a problem with the script tying my machine up forever, waiting
  9326. >for a response from Anarchie, which doesn't send a response until the file
  9327. >has actually been recieved.  So I found the nifty little "ignoring
  9328. >application responses" command in the Applescript manual (yes, I actually
  9329. >Read The F'ing Manual :).  At which point the relevant part of the script
  9330. >looked like:
  9331. >
  9332. >tell application "Anarchie"
  9333. >        ignoring application responses
  9334. >                set theResult to fetch url theurl
  9335. >        end ignoring
  9336. >end tell
  9337. >
  9338. >Now whenever I run the script, I get a dialog box with the following message:
  9339. >
  9340. >An error of type -1753 occured while running the script named "Fetch
  9341. >Clipboard."
  9342. >
  9343. >The scripting system reported that "no result was returned from some part
  9344. >of this
  9345. >
  9346.  
  9347. You are telling AppleScript two conflicting things:
  9348.  
  9349. First, you say send the event to Anarchie in such a way that no response
  9350. comes back.  Then you say, "oh, and put the response which isn't coming
  9351. back into theResult".  I'm not surprised the combination doesn't work.
  9352.    --John
  9353.  
  9354. --
  9355. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  9356. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  9357. =========================================================================
  9358. Date:         Mon, 15 Aug 1994 14:53:34 -0500
  9359. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9360. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9361. From:         Jason Frankovitz <jfrankov@NICKEL.UCS.INDIANA.EDU>
  9362. Subject:      MACSCRPT Digest - 13 Aug 1994 to 14 Aug 1994
  9363.  
  9364. Hi out there, does anyone know of a way to have an applet tell what
  9365. kind of thing was dropped on it? I'd like users to drop either a
  9366. folder OR individual files (or double-click) onto my applet and still
  9367. have it do the same thing, (ie pass the correct data to my subroutined
  9368. engine...)
  9369.  
  9370. Thanks for any help or suggestions!
  9371. Jason
  9372.  
  9373. --
  9374. Are you trying to say waffles are       |      Jason Frankovitz
  9375. diuretics, or that consuming diuretics  |      Bloomington, IN
  9376. makes you waffle?                       |      jfrankov@indiana.edu
  9377. =========================================================================
  9378. Date:         Mon, 15 Aug 1994 14:00:12 -0700
  9379. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9380. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9381. From:         Alec Plumb <aplumb@UCSD.EDU>
  9382. Subject:      Re: ignoring application responses
  9383.  
  9384. >>Hello,
  9385. >>I have been using the Fetch Clipboard script, which came with Anarchie,
  9386. >>with OSA menu to pull down some of the many URLs that come my way.  At
  9387. >>first I had a problem with the script tying my machine up forever, waiting
  9388. >>for a response from Anarchie, which doesn't send a response until the file
  9389. >>has actually been recieved.  So I found the nifty little "ignoring
  9390. >>application responses" command in the Applescript manual (yes, I actually
  9391. >>Read The F'ing Manual :).  At which point the relevant part of the script
  9392. >>looked like:
  9393. >>
  9394. >>tell application "Anarchie"
  9395. >>        ignoring application responses
  9396. >>                set theResult to fetch url theurl
  9397. >>        end ignoring
  9398. >>end tell
  9399. >>
  9400. >>Now whenever I run the script, I get a dialog box with the following message:
  9401. >>
  9402. >>An error of type -1753 occured while running the script named "Fetch
  9403. >>Clipboard."
  9404. >>
  9405. >>The scripting system reported that "no result was returned from some part
  9406. >>of this
  9407. >>
  9408. >
  9409. >You are telling AppleScript two conflicting things:
  9410. >
  9411. >First, you say send the event to Anarchie in such a way that no response
  9412. >comes back.  Then you say, "oh, and put the response which isn't coming
  9413. >back into theResult".  I'm not surprised the combination doesn't work.
  9414. >   --John
  9415. >
  9416. >--
  9417. >jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  9418. >finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  9419.  
  9420.  
  9421. You are right.  But when I remove "set theResult to", I get an error -49
  9422. when I launch the script through OSA menu.  But when I run the modified
  9423. script from within Script Editor, it doesn't have any problem.  I just
  9424. tried the script with OtherMenu without a hitch.  So it seems to be some
  9425. kind of problem with OSA Menu.
  9426.  
  9427. Thanks,
  9428.  
  9429. Alec Plumb
  9430. =========================================================================
  9431. Date:         Mon, 15 Aug 1994 15:02:54 -0800
  9432. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9433. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9434. From:         Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
  9435. Subject:      Re: Scripting PowerTalk
  9436.  
  9437. >Has anyone been scripting PowerTalk yet?
  9438. >
  9439. >Specifically the owner's in box and AppleMail?
  9440. >
  9441.  
  9442. Yes, I tried Scripting PowerTalk for a while and then went to Eudora.
  9443.  
  9444. The Beyond Mail PowerRules stuff seems to be very flakey and it was the
  9445. only thing I found that could open incoming mail and read it, BUT, lots of
  9446. the sample AppleScripts would not function and it seemed to get worse with
  9447. each update.
  9448.  
  9449. The GTQ Libraries have some send AppleEvents but no read mail AppleEvents.
  9450. The calls to read AppleMail have not been published. There are rumors that
  9451. someone will have some read AppleMail AppleEvents sometime soon but I have
  9452. yet to see them and they might cease to function if Apple ever gets around
  9453. to publishing (and thus freezing) the read mail spec.
  9454.  
  9455. For now I script Eudora. It works.
  9456.  
  9457. Kee Nethery
  9458.  
  9459. _________________________________________________________________
  9460. Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
  9461. =========================================================================
  9462. Date:         Mon, 15 Aug 1994 16:36:19 -0700
  9463. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9464. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9465. From:         Derrick Schneider <derrick@NETCOM.COM>
  9466. Subject:      Re: MACSCRPT Digest - 13 Aug 1994 to 14 Aug 1994
  9467. In-Reply-To:  <199408152149.OAA16298@mail2.netcom.com>
  9468.  
  9469. > Hi out there, does anyone know of a way to have an applet tell what
  9470. > kind of thing was dropped on it? I'd like users to drop either a
  9471. > folder OR individual files (or double-click) onto my applet and still
  9472. > have it do the same thing, (ie pass the correct data to my subroutined
  9473. > engine...)
  9474.  
  9475. One way (just using the file commands scripting addition) would be to do
  9476. a "folder of info for" on each item:
  9477.  
  9478. on open(docList)
  9479.   --General open handler
  9480.   repeat with i from 1 to the count of docList
  9481.         --General repeat loop
  9482.         if the folder of (info for item i of docList) is true then
  9483.                 --Do folder related things
  9484.         else --One can assume it's a file, but it may be a disk. I don't
  9485. know how AS distinguishes a disk from a folder, if it does. You could use
  9486. ResEdit to limit the FREF to only allow folders and files
  9487.                 --Do file related things
  9488.         end if
  9489. end open
  9490.  
  9491. In terms of trapping for double-click or not, that's easy.
  9492. Double-clicking on the app doesn't trigger the open handler. Instead, it
  9493. triggers the "run" handler (or it does all the commands not in any
  9494. handler). Likewise the "quit" handler gets run when your script app quits.
  9495.  
  9496. Hope that helps,
  9497.  
  9498. Derrick
  9499. =========================================================================
  9500. Date:         Mon, 15 Aug 1994 16:53:16 -0700
  9501. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9502. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9503. From:         James Edward Davis <jedavis@CS.STANFORD.EDU>
  9504. Subject:      Run a script from C code
  9505.  
  9506. Id like to run previously compiled (with Toy Surprise)
  9507. script from my C code. I cant manage to get it to work, even
  9508. though its supposed to be fairly simple. I dont suppose a
  9509. code snippet exist anywhere, or that someone would like to
  9510. provide one? My code only works while Think Debugger is running,
  9511. but crashes without it. =(
  9512.  
  9513. Any pointers appreciated,
  9514. James Davis (jedavis@cs.stanford.edu) : Stanford University
  9515. =========================================================================
  9516. Date:         Mon, 15 Aug 1994 18:09:41 -0700
  9517. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9518. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9519. From:         Edmund Lai <lai@APPLE.COM>
  9520. Subject:      Re: Auditing Your Additions
  9521.  
  9522. >There was a discussion on this mailing list a few days ago about people having
  9523. >so many osaxes in their Scripting Additions folder that they were losing track
  9524. >of which ones did what. I decided to come up with a solution to the problem.
  9525. >
  9526. >My solution takes the form of yet another scripting addition, which I call
  9527. >EightyLister. This implements two commands: "list events" will list a summary
  9528. >of the events defined in an aete resource in any file. "scripting additions
  9529. >folder" returns an alias to your Scripting Additions folder, and I've provided
  9530. >basic example scripts so you can see how to use these two to list all the
  9531. >events
  9532. >defined by your currently-installed osaxes.
  9533. >
  9534. >I've dropped a copy in the incoming directory on gaea.kgs.ukans.edu. Enjoy!
  9535. >
  9536. >Lawrence D'Oliveiro                       fone: +64-7-856-2889
  9537. >Info & Tech Services Division              fax: +64-7-838-4066
  9538. >University of Waikato            electric mail: ldo@waikato.ac.nz
  9539. >Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  9540.  
  9541. This reminds me of something I did a while ago. It was an osax called
  9542. "What can I do". It tried to display either all the commands from
  9543. a application (if you use tell) or all the osax. All the parameters
  9544. in the commands are displayed. The command text are generated by
  9545. asking AppleScript to unparse it. In fact to generate optional
  9546. parameters AppleScript is asked to unparse it once with a parameter
  9547. and once without and this is repeated for every optional parameter.
  9548. The result is that it is rather slow, and sometimes the amount of
  9549. text generated is so large that script editor has problem handling
  9550. it. So I never release it. But it can be fun to play with. So I
  9551. also put it into the incoming directory on gaea.kgs.ukans.edu.
  9552. It is called helpOSAX.
  9553.  
  9554. /* Disclaimer: All statments and opinions expressed are my own */
  9555. /* Edmund K. Lai                                               */
  9556. /* Apple Computer, MS303-3A                                    */
  9557. /* 20525 Mariani Ave,                                          */
  9558. /* Cupertino, CA 95014                                         */
  9559. /* (408)974-6272                                               */
  9560. zW@h9cOi
  9561. =========================================================================
  9562. Date:         Mon, 15 Aug 1994 19:04:33 -0700
  9563. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9564. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9565. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  9566. Subject:      Re: ignoring application responses
  9567.  
  9568. [Prior exchange omitted]
  9569.  
  9570. Alec says:
  9571.  
  9572. >You are right.  But when I remove "set theResult to", I get an error -49
  9573. >when I launch the script through OSA menu.  But when I run the modified
  9574. >script from within Script Editor, it doesn't have any problem.  I just
  9575. >tried the script with OtherMenu without a hitch.  So it seems to be some
  9576. >kind of problem with OSA Menu.
  9577.  
  9578. I ran into one of those just today.  I had to close the copy of the
  9579. just-saved script which was open in Script Editor...then the -49 error went
  9580. away.  And, -49 is:
  9581.  
  9582. The read/write permission of only one access path to a file can allow writing
  9583.  
  9584.    --John
  9585.  
  9586. --
  9587. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  9588. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  9589. =========================================================================
  9590. Date:         Mon, 15 Aug 1994 22:24:23 -0700
  9591. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9592. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9593. From:         Oliver Muoto <muoto@NETCOM.COM>
  9594. Subject:      Re: MACSCRPT Digest - 13 Aug 1994 to 14 Aug 1994
  9595.  
  9596. Is there an OSAX that allows you to specifically search for a file (returns
  9597. an alias to the file)?
  9598.  
  9599. Thanks in advance.
  9600.  
  9601.  
  9602. --------------------------------------------------------------------------------
  9603. Oliver Muoto                                             Voice: 415.541.9333
  9604. Product Manager/Director of Marketing                    Fax:   415.541.0555
  9605. Motion Works International                               Email: muoto@netcom.com
  9606. --------------------------------------------------------------------------------
  9607. =========================================================================
  9608. Date:         Tue, 16 Aug 1994 01:01:44 -0600
  9609. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9610. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9611. From:         "Andy Cemelli [remote]" <ANDYC@WORDPERFECT.COM>
  9612. Subject:      Re: Visual cues that an AppleScript is running -Reply
  9613.  
  9614. Jon,
  9615.  
  9616. check out the spinning globe that at the very least is in our product
  9617. WordPerfect....
  9618.  
  9619. Andrew Cemelli
  9620. Macintosh Systems Engineer
  9621. WordPerfect Corporation (ANDYC@WordPerfect.com)
  9622. ---------------------------------------------------
  9623. The fact that I'm opinionated is not my employer's fault.
  9624. ---------------------------------------------------
  9625. =========================================================================
  9626. Date:         Tue, 16 Aug 1994 08:41:38 -0500
  9627. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9628. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9629. From:         Fred Terry <pfterry@LKS.CSI.COM>
  9630. Subject:      Re: Auditing Your Additions
  9631. In-Reply-To:  Your message of "Mon, 15 Aug 94 18:09:41 PDT"
  9632.  
  9633. Ed Lai sez......
  9634.  
  9635. This reminds me of something I did a while ago. It was an osax called
  9636. >"What can I do". It tried to display either all the commands from
  9637. >a application (if you use tell) or all the osax. All the parameters
  9638. >in the commands are displayed. The command text are generated by
  9639. >asking AppleScript to unparse it. In fact to generate optional
  9640. >parameters AppleScript is asked to unparse it once with a parameter
  9641. >and once without and this is repeated for every optional parameter.
  9642. >The result is that it is rather slow, and sometimes the amount of
  9643. >text generated is so large that script editor has problem handling
  9644. >it. So I never release it. But it can be fun to play with. So I
  9645. >also put it into the incoming directory on gaea.kgs.ukans.edu.
  9646. >It is called helpOSAX.
  9647.  
  9648. You'll find it in
  9649.  
  9650. ftp://gaea.kgs.ukans.edu/applescript/osaxen/helposax.sit.hqx
  9651.  
  9652. Cheers.
  9653.  
  9654. pf
  9655. =========================================================================
  9656. Date:         Tue, 16 Aug 1994 15:57:00 GMT
  9657. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9658. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9659. From:         "Hsu, Eugene" <HSU.E@APPLELINK.APPLE.COM>
  9660. Subject:      Re: Run a script from C code
  9661.  
  9662. >Id like to run previously compiled (with Toy Surprise)
  9663. >script from my C code. I cant manage to get it to work, even
  9664. >though its supposed to be fairly simple. I dont suppose a
  9665. >code snippet exist anywhere, or that someone would like to
  9666. >provide one? My code only works while Think Debugger is running,
  9667. >but crashes without it. =(
  9668.  
  9669. >Any pointers appreciated,
  9670. >James Davis (jedavis@cs.stanford.edu) : Stanford University
  9671.  
  9672. -------
  9673.  
  9674. Also, does anyone out there have sample code to demonstrate how to pass
  9675. parameters from C code to a script with a handler?
  9676.  
  9677. Eugene Hsu
  9678. HSU.E@applelink.apple.com
  9679. =========================================================================
  9680. Date:         Tue, 16 Aug 1994 15:57:00 GMT
  9681. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9682. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9683. From:         "Hsu, Eugene" <HSU.E@APPLELINK.APPLE.COM>
  9684. Subject:      Re: Run a script from C code
  9685.  
  9686. >Id like to run previously compiled (with Toy Surprise)
  9687. >script from my C code. I cant manage to get it to work, even
  9688. >though its supposed to be fairly simple. I dont suppose a
  9689. >code snippet exist anywhere, or that someone would like to
  9690. >provide one? My code only works while Think Debugger is running,
  9691. >but crashes without it. =(
  9692.  
  9693. >Any pointers appreciated,
  9694. >James Davis (jedavis@cs.stanford.edu) : Stanford University
  9695.  
  9696. -------
  9697.  
  9698. Here is some C Code that might help...
  9699.  
  9700.  
  9701. Eugene Hsu
  9702. HSU.E@applelink.apple.com
  9703.  
  9704. -------
  9705.  
  9706. OSErr  ExecuteScript(AEDesc theScript, AEDescList theParamList,
  9707.    ComponentInstance gASComponent,
  9708.    AppleEvent *theReply)
  9709. {
  9710.    OSAError    theOSAErr = errAEWrongDataType;
  9711.    OSErr   theErr = noErr;
  9712.    OSAID   resultingID = 0, resultingScriptValueID = 0;
  9713.    longmodeFlags = 0;
  9714.    AEDesc  result, errDesc;
  9715.    AEAddressDesc   target;
  9716.    AppleEvent  theAppleEvent;
  9717.    AEDesc  resultingErrorDescription;
  9718.  
  9719.    theAppleEvent.dataHandle = nil;
  9720.    target.descriptorType = typeTargetID;
  9721.    target.dataHandle = nil;
  9722.    resultingErrorDescription.dataHandle = nil;
  9723.  
  9724.    result.descriptorType = typeNull;
  9725.    result.dataHandle = nil;
  9726.    errDesc.dataHandle = nil;
  9727.  
  9728.    if (theScript.descriptorType == kOSAScriptResourceType) {
  9729.    theOSAErr = OSALoad(gASComponent,
  9730.    &theScript,
  9731.    modeFlags,
  9732.    &resultingID);
  9733.    }
  9734.    else {
  9735.    theOSAErr = OSACompile( gASComponent,
  9736.    &theScript,
  9737.    kOSAModeCompileIntoContext,
  9738.    &resultingID);
  9739.    }
  9740.    if(theOSAErr != noErr) goto BAILLABEL;
  9741.  
  9742.  
  9743.    theOSAErr = OSAExecute( gASComponent,
  9744.    resultingID,
  9745.    kOSANullScript,
  9746.    modeFlags,
  9747.    &resultingScriptValueID);
  9748.  
  9749.    if(theOSAErr == noErr){
  9750.    if(resultingScriptValueID != 0) { // Only add it if we got some value back.
  9751.    theOSAErr = OSACoerceToDesc(gASComponent,
  9752.    resultingScriptValueID,
  9753.    typeWildCard,
  9754.    modeFlags,
  9755.    &result);
  9756.  
  9757.    if(theOSAErr == noErr)
  9758.    AEPutParamDesc(theReply, keyDirectObject, &result);
  9759.    else // Just return the error
  9760.    theErr = AEPutParamPtr(theReply, keyErrorNumber, typeLongInteger,
  9761. (Ptr)&theOSAErr, sizeof(theOSAErr));
  9762.    }
  9763.    }
  9764.    else {
  9765.    if(theOSAErr == errOSAScriptError) {
  9766.    theOSAErr = OSAScriptError(gASComponent, kOSAErrorNumber, typeLongInteger,
  9767. &errDesc);
  9768.    if(theOSAErr != noErr) {
  9769.    if(errDesc.dataHandle != nil)
  9770.    AEDisposeDesc(&errDesc);
  9771.    goto BAILLABEL;
  9772.    }
  9773.  
  9774.    theErr = AEPutParamDesc(theReply, keyErrorNumber, &errDesc);
  9775.    if(theErr != noErr) goto BAILLABEL;
  9776.  
  9777.    if(errDesc.dataHandle != nil) // so we can reuse it
  9778.    AEDisposeDesc(&errDesc);
  9779.  
  9780.    theOSAErr = OSAScriptError(gASComponent, kOSAErrorMessage, typeChar,
  9781. &errDesc);
  9782.    if(theOSAErr != noErr) {
  9783.    if(errDesc.dataHandle != nil)
  9784.    AEDisposeDesc(&errDesc);
  9785.    goto BAILLABEL;
  9786.    }
  9787.    theErr = AEPutParamDesc(theReply, keyErrorString, &errDesc);
  9788.    }
  9789.    else // Just return the error
  9790.    theErr = AEPutParamPtr(theReply, keyErrorNumber, typeLongInteger,
  9791. (Ptr)&theOSAErr, sizeof(theOSAErr));
  9792.    }
  9793.  
  9794.  
  9795.    BAILLABEL:;
  9796.    theErr = theOSAErr;
  9797.    if(resultingID != 0)
  9798.    OSADispose( gASComponent,
  9799.        resultingID);
  9800.    if(resultingID != 0)
  9801.    OSADispose( gASComponent,
  9802.        resultingScriptValueID);
  9803.    if(result.dataHandle != nil)
  9804.    AEDisposeDesc(&result);
  9805.    if(errDesc.dataHandle != nil)
  9806.    AEDisposeDesc(&errDesc);
  9807.    if(theAppleEvent.dataHandle != nil)
  9808.    AEDisposeDesc(&theAppleEvent);
  9809.    if(resultingErrorDescription.dataHandle != nil)
  9810.    AEDisposeDesc(&resultingErrorDescription);
  9811.  
  9812.    return theErr;
  9813. }
  9814. =========================================================================
  9815. Date:         Tue, 16 Aug 1994 12:21:16 -0400
  9816. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9817. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9818. From:         "Klaus P. Fechner" <klaus@SPARKY.RAD.MED.UMICH.EDU>
  9819. Subject:      Re: ignoring application responses
  9820.  
  9821. >
  9822. >I ran into one of those just today.  I had to close the copy of the
  9823. >just-saved script which was open in Script Editor...then the -49 error went
  9824. >away.  And, -49 is:
  9825. >
  9826. >The read/write permission of only one access path to a file can allow writing
  9827.  
  9828. So why would AppleScript, OSA Menu or anything else other than the Script
  9829. Editor/ScriptWizard need that script open for write access ?
  9830.  
  9831. Klaus
  9832.  
  9833. ------------------------------------------------------------------------
  9834. Klaus P. Fechner<klaus@sparky.rad.med.umich.edu> VAMC Palo Alto, CA, USA
  9835. =========================================================================
  9836. Date:         Tue, 16 Aug 1994 10:11:14 PDT
  9837. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9838. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9839. From:         Joe Scripter <MikeL@EWORLD.COM>
  9840. Subject:      ?FileMaker Pro and AppleScript?
  9841.  
  9842. I'm using AS in FileMaker Pro and have the following problems. When using AS
  9843. to initiate a reloookup or replace command in FMP, AS hangs and times out.
  9844. The problem isn't the timeout time, rather it seems AS isn't aware that FMP
  9845. is finished with the task initiated. The only solution I've found is to
  9846. implement a dialog in AS after the command line to FMP. What a kludge. Also,
  9847. the reliability of menu hits is less than satisfactory. I know about enables,
  9848. yet, sometimes, even when enabled the do menu command fails to return the
  9849. proper response. I am resorting to initiating FMP internal scripts when I
  9850. shouldn't have to in order to get things done. Why is this so
  9851. unreliable?
  9852.  
  9853. Thanks,
  9854.  
  9855. -MJL
  9856. =========================================================================
  9857. Date:         Tue, 16 Aug 1994 11:20:15 -0800
  9858. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9859. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9860. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  9861. Subject:      Re: ignoring application responses
  9862.  
  9863. >And I'd like to know why the dialog box
  9864. >is too small for the error message.  Is this a function of OSA menu?
  9865. >
  9866.         Yup, my dialog box is too small :(.
  9867.  
  9868.  
  9869. >Would OtherMenu do a better job?
  9870. >
  9871.         Don't know - haven't tried it!
  9872.  
  9873.  
  9874. LDR
  9875.  
  9876. -----------------------------------------------------------------------------
  9877. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  9878. Director of Advanced Technology         AppleLink:      MACgician
  9879. Aladdin Systems, Inc.                   GEnie:          MACgician
  9880. =========================================================================
  9881. Date:         Tue, 16 Aug 1994 11:19:25 -0800
  9882. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9883. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9884. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  9885. Subject:      Re: Cut from one app, paste to another
  9886.  
  9887. >I want to write a script that can take the currently selected text from one
  9888. >app and paste it into another app--namely, to be able to make a reply in
  9889. >Eudora to text from my terminal window or a new message to an address
  9890. >selected in same.  BUT, after reading the discussion of the past few days,
  9891. >I wonder if this is possible?
  9892. >
  9893.         Shouldn't be a problem.   I use AutoType and Jon's Clipboard OSAX
  9894. to do this kind of thing for pasting in signatures and the like.   Another
  9895. great tool in this regard is KeyQuencer.
  9896.  
  9897.  
  9898. >So-can I find out what was active immediately before my script was run from
  9899. >OSA Menu??  Having that, I assume I could use somethign like AutoType to
  9900. >cut from one app and paste to another.... Or do scripts run via OSA Menu
  9901. >run in the background already?
  9902. >
  9903.         Should work fine...
  9904.  
  9905.  
  9906. Leonard
  9907.  
  9908. -----------------------------------------------------------------------------
  9909. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  9910. Director of Advanced Technology         AppleLink:      MACgician
  9911. Aladdin Systems, Inc.                   GEnie:          MACgician
  9912. =========================================================================
  9913. Date:         Tue, 16 Aug 1994 11:22:28 -0800
  9914. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9915. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9916. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  9917. Subject:      Re: AppleScript as a network software installer/updater system
  9918.  
  9919. >I'm starting to get into Installer Making myself (playing with Smaller
  9920. >Installer and Aladdin Installer Maker right now).  I like your idea -- I've
  9921. >figured that if I could count on the user having AS, writing installers
  9922. >would be laughingly easy
  9923. >
  9924.         One of the things that we are looking at for future versions of
  9925. InstallerMaker is allowing the attachment of AppleScripts to an
  9926. installation like you can do currnetly with custom code resources.  The
  9927. reason we haven't done it to thi point is mostly that AS hasn't yet been as
  9928. widely adopted and so it wouldn't be as useful.  Now that 7.5 is emminent,
  9929. we'll see about having it in our next major update.
  9930.  
  9931.  
  9932. Leonard
  9933.  
  9934. -----------------------------------------------------------------------------
  9935. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  9936. Director of Advanced Technology         AppleLink:      MACgician
  9937. Aladdin Systems, Inc.                   GEnie:          MACgician
  9938. =========================================================================
  9939. Date:         Tue, 16 Aug 1994 11:23:47 -0800
  9940. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9941. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9942. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  9943. Subject:      Re: SITComm and the window properties?
  9944.  
  9945. >I figured I could write some sort of script dealing with "bounds of window 1"
  9946. >to make sure the window is in the state I like it.  However, it doesn't seem
  9947. >to include windows as objects with properties - that is to say, the
  9948. >dictionary doesn't define window as an object....
  9949. >
  9950.         Correct.  As of SITcomm 1.0.1, the AEObject Model is not supported
  9951. so that you can't do things with window properties.   Our goal was to get
  9952. SITcomm out and doing object model at the time wasn't on teh schedule.  We
  9953. have plans to incorporate it into all of our products in the future to
  9954. improve both functionality and ease of use in our scdriptability.
  9955.  
  9956.  
  9957. Leonard
  9958.  
  9959. -----------------------------------------------------------------------------
  9960. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  9961. Director of Advanced Technology         AppleLink:      MACgician
  9962. Aladdin Systems, Inc.                   GEnie:          MACgician
  9963. =========================================================================
  9964. Date:         Tue, 16 Aug 1994 12:31:53 -0800
  9965. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9966. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9967. From:         Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU>
  9968. Subject:      Re: MACSCRPT Digest - 14 Aug 1994 to 15 Aug 1994
  9969.  
  9970. Jon Pugh writes:
  9971. > I'm trying to decide on the best ways to do the custom busy procedure.
  9972. > It will be simple enough to include a set of common busy cursors that
  9973. > you can choose from.  That would be the beachball and the watch.
  9974. > I'm taking suggestions for others.  I have a fairly large
  9975. > cursor collection, so I'll paw through it and see what shows up.
  9976.  
  9977. How about a small script document as a cursor where each successive line
  9978. highlights and then moves to the next line. It would look like the document is
  9979. being read (or the script is being performed). You could also make the lines
  9980. scroll up making it look like it's going through the script.
  9981.  
  9982. Just some thoughts,
  9983.  
  9984. Greg
  9985. =========================================================================
  9986. Date:         Tue, 16 Aug 1994 12:42:47 PDT
  9987. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9988. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9989. From:         Joe Scripter <MikeL@EWORLD.COM>
  9990. Subject:      Pictures from QuarkXPress
  9991.  
  9992. Does anyone know if someone can get a list pictures like they can get a font
  9993. list. I don't see anything in the documentation about this. Any ideas?
  9994.  
  9995. Thanks
  9996.  
  9997. -Mike
  9998. =========================================================================
  9999. Date:         Tue, 16 Aug 1994 12:45:11 PDT
  10000. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10001. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10002. From:         Joe Scripter <MikeL@EWORLD.COM>
  10003. Subject:      Re: Cut from one app, paste to another
  10004.  
  10005. Without the 'activate window' FMP doesn't get the message. Without the
  10006. 'activate' and 'display dialog' following the 'do script' AS hangs,
  10007. apparently waiting for a result from FMP. I am open to criticism of any sort
  10008. on this script. Because of the sparse nature of interaction on this forum and
  10009. the limited number of tomes on AS we have been pretty much scripting in the
  10010. dark.
  10011.  
  10012. Here is what we have.....
  10013.  
  10014. set LCheck to ""
  10015. set BCheck to ""
  10016. set SCheck to ""
  10017. set YCheck to ""
  10018. set LCheck to ""
  10019. set PrclNo to ""
  10020. with timeout of 10000 seconds
  10021.  
  10022.  tell application "FileMaker Pro"
  10023.   tell Document " HSI Assessment 2.0"
  10024.    tell Layout 0
  10025.     copy (Cell "A033 LandCheck") to LCheck
  10026.     copy (Cell "A034 BuildingCheck") to BCheck
  10027.     copy (Cell "A035 YardCheck") to YCheck
  10028.     copy (Cell "A036 SketchCheck") to SCheck
  10029.     copy (Cell "A001 Parcel No.") to PrclNo
  10030.    end tell
  10031.   end tell
  10032.  end tell
  10033.  
  10034.  set the clipboard to PrclNo
  10035.  
  10036.  if LCheck = "Yes" then
  10037.   tell application "FileMaker Pro"
  10038.    activate Window "*Land Module"
  10039.    Do Script FileMaker Script named "Find Land for Chg" in Document "*Land
  10040. Module"
  10041.   end tell
  10042.  end if
  10043.  
  10044.  if BCheck = "Yes" then
  10045.   tell application "FileMaker Pro"
  10046.    activate Window "*Building Module"
  10047.    Do Script FileMaker Script named "Find Building chg prcl" in Document
  10048. "*Building Module"
  10049.   end tell
  10050.  end if
  10051.  
  10052.  if YCheck = "Yes" then
  10053.   tell application "FileMaker Pro"
  10054.    activate Window "*Yard Module"
  10055.    Do Script FileMaker Script named "Find Yard Chg Prcl" in Document "*Yard
  10056. Module"
  10057.   end tell
  10058.  end if
  10059.  
  10060.  if SCheck = "Yes" then
  10061.   tell application "FileMaker Pro"
  10062.    activate Window "*Sketch Module"
  10063.    Do Script FileMaker Script named "Find Sketch" in Document "*Sketch
  10064. Module"
  10065.   end tell
  10066.  end if
  10067.  
  10068.  if LCheck = "Yes" then
  10069.   tell application "FileMaker Pro"
  10070.    activate Window "*Land Module"
  10071.    Do Script FileMaker Script named "Change Parcel#" in Document "*Land
  10072. Module"
  10073.   end tell
  10074.   activate
  10075.   display dialog "Land records have been changed." buttons "OK" default
  10076. button "OK"
  10077.  
  10078.  end if
  10079.  
  10080.  if BCheck = "Yes" then
  10081.   tell application "FileMaker Pro"
  10082.    activate Window "*Building Module"
  10083.    Do Script FileMaker Script named "Change Parcel#" in Document "*Building
  10084. Module"
  10085.   end tell
  10086.   activate
  10087.   display dialog "Building records have been changed." buttons "OK" default
  10088. button "OK"
  10089.  end if
  10090.  
  10091.  if YCheck = "Yes" then
  10092.   tell application "FileMaker Pro"
  10093.    activate Window "*Yard Module"
  10094.    Do Script FileMaker Script named "Change Parcel#" in Document "*Yard
  10095. Module"
  10096.    activate
  10097.    display dialog "Yard records have been changed." buttons "OK" default
  10098. button "OK"
  10099.   end tell
  10100.  end if
  10101.  
  10102.  if SCheck = "Yes" then
  10103.   tell application "FileMaker Pro"
  10104.    activate Window "*Sketch Module"
  10105.    Do Script FileMaker Script named "Change Parcel#" in Document "*Sketch
  10106. Module"
  10107.    activate
  10108.    display dialog "Sketch & Photo records have been changed." buttons "OK"
  10109. default button "OK"
  10110.   end tell
  10111.  end if
  10112.  
  10113.  tell application "FileMaker Pro"
  10114.   activate Window " HSI Assessment 2.0"
  10115.   Do Script FileMaker Script named "Change Parcel# prt2" in Document " HSI
  10116. Assessment 2.0"
  10117.  end tell
  10118.  
  10119.  activate
  10120.  display dialog "Change parcel number is complete." buttons "OK" default
  10121. button "OK"
  10122.  activate window " HSI Assessment 2.0"
  10123.  tell application "FileMaker Pro"
  10124.   activate Window " HSI Assessment 2.0"
  10125.   Do Script FileMaker Script named "Menu" in Document " HSI Assessment 2.0"
  10126.  end tell
  10127.  
  10128. end timeout
  10129.  
  10130. Any ideas or suggestions for this person?
  10131.  
  10132. Thanks,
  10133.  
  10134. Mike
  10135. =========================================================================
  10136. Date:         Tue, 16 Aug 1994 12:51:58 -0700
  10137. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10138. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10139. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  10140. Subject:      Re: ignoring application responses
  10141.  
  10142. >>
  10143. >>I ran into one of those just today.  I had to close the copy of the
  10144. >>just-saved script which was open in Script Editor...then the -49 error went
  10145. >>away.  And, -49 is:
  10146. >>
  10147. >>The read/write permission of only one access path to a file can allow writing
  10148. >
  10149. >So why would AppleScript, OSA Menu or anything else other than the Script
  10150. >Editor/ScriptWizard need that script open for write access ?
  10151.  
  10152. I think the answer has to do with properties, and the fact that properties
  10153. do retain their values from one execution of an OSA Menu AppleScript script
  10154. to the next.  [As it happens, I was cleaning house yesterday, and deleted
  10155. the test script which showed that.  Early beta versions of OSA Menu had a
  10156. problem with it, so I kept the script around for quite a while.  Something
  10157. like
  10158.  
  10159. property counter: 0
  10160.  
  10161. set counter to counter + 1
  10162. display dialog "I have been executed " & (counter as string) & " times."
  10163.  
  10164.    --John
  10165.  
  10166. --
  10167. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  10168. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  10169. =========================================================================
  10170. Date:         Tue, 16 Aug 1994 12:52:02 -0700
  10171. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10172. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10173. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  10174. Subject:      Re: ?FileMaker Pro and AppleScript?
  10175.  
  10176. >I'm using AS in FileMaker Pro and have the following problems. When using AS
  10177. >to initiate a reloookup or replace command in FMP, AS hangs and times out.
  10178. >The problem isn't the timeout time, rather it seems AS isn't aware that FMP
  10179. >is finished with the task initiated. The only solution I've found is to
  10180. >implement a dialog in AS after the command line to FMP. What a kludge. Also,
  10181. >the reliability of menu hits is less than satisfactory. I know about enables,
  10182. >yet, sometimes, even when enabled the do menu command fails to return the
  10183. >proper response. I am resorting to initiating FMP internal scripts when I
  10184. >shouldn't have to in order to get things done. Why is this so
  10185. >unreliable?
  10186.  
  10187. First, what version of FileMaker Pro are you using.  Versions prior to
  10188. 2.1v2 were considerably less reliable in this area than 2.1v2 is.  Or,
  10189. should I have said "...considerably more unreliable than..."?
  10190.  
  10191. It's not AppleScript per se...Frontier script writers suffer similar slings
  10192. and arrows.
  10193.  
  10194.    --John
  10195.  
  10196. --
  10197. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  10198. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  10199. =========================================================================
  10200. Date:         Tue, 16 Aug 1994 13:01:48 -0800
  10201. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10202. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10203. From:         "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
  10204. Subject:      WHAA!!
  10205.  
  10206. I got my AS SDK 1.1 today from APDA. I had the impression, verified by
  10207. APDA, that this included The Scriptable Finder.  If it does, I can't find
  10208. it.  It has 'finder scripting software,' but not the scriptable finder.
  10209.  
  10210. Am I looking in the wrong place, or can someone back me up on this?
  10211.  
  10212. -roy
  10213.  
  10214. Roy S. Rapoport                                       rsr@berksys.com
  10215. 2095 Rose St                                    Berkeley   CA   94709
  10216. =========================================================================
  10217. Date:         Tue, 16 Aug 1994 13:03:54 -0700
  10218. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10219. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10220. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  10221. Subject:      Re: WHAA!!
  10222.  
  10223. >I got my AS SDK 1.1 today from APDA. I had the impression, verified by
  10224. >APDA, that this included The Scriptable Finder.  If it does, I can't find
  10225. >it.  It has 'finder scripting software,' but not the scriptable finder.
  10226. >
  10227. >Am I looking in the wrong place, or can someone back me up on this?
  10228.  
  10229. The "Scriptable Finder" is any Finder 7.1.3 or later plus an Extension.
  10230. The extension is:
  10231.  
  10232. AppleScript=81:Scripting the Finder:Finder Scripting Setup:Finder Scripting
  10233. Extension
  10234.  
  10235. The Finder, if you are using a version earlier than 7.1.3 is:
  10236. AppleScript=81:Scripting the Finder:Finder Scripting Setup:Finder
  10237.  
  10238.  
  10239. --John (for the MIME-impaired:  =81 is the trademark symbol)
  10240.  
  10241. --
  10242. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  10243. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  10244. =========================================================================
  10245. Date:         Tue, 16 Aug 1994 16:11:25 -0400
  10246. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10247. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10248. From:         anthony brown <anbrown@HUSC9.HARVARD.EDU>
  10249. Subject:      Re: WHAA!!
  10250. In-Reply-To:  <01HFZEBHUQYA9VX2X4@NETOP8.HARVARD.EDU>
  10251.  
  10252. Just wanted to let you know that if you are using finder 7.1.3, you will
  10253. also need the new network extension in addition to the finder scripting
  10254. extension if you plan on being ion any kid of network..
  10255.  
  10256. Anthony
  10257.  
  10258. *********************************************************************
  10259. *                                                                   *
  10260. *  Anthony Brown, Macintosh Programming Intern, Harvard Universtiy  *
  10261. *                                                                   *
  10262. *  "Classic Rock Music Stations,  The 70's are calling,             *
  10263. *   They want their 8 - Tracks back!"                               *
  10264. *                                                                   *
  10265. *   Dolphin's Rule!! Undefeated 17 - 0  The Perfect Team 1972-73    *
  10266. *                                                                   *
  10267. *********************************************************************
  10268. =========================================================================
  10269. Date:         Wed, 17 Aug 1994 09:29:00 +1200
  10270. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10271. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10272. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  10273.               NZ" <LDO@WAIKATO.AC.NZ>
  10274. Subject:      Re: EightyLister: resource not found
  10275.  
  10276. Robert Mark <rmark@ISDMNL.WR.USGS.GOV> writes:
  10277.  
  10278. >When I run "List Additions" (EightyLister), after running for some time, I
  10279. >get a "Resource wasn't found" error at:
  10280. > "list events file (AdditionsFolder & ThisFile)"
  10281.  
  10282. The problem is that you have a scripting addition with no "aete" resource
  10283. in it--probably something that provides coercion handlers but no event
  10284. handlers. I hit this with the "fwin coercion" addition that came with Daniel
  10285. Ranson's Finder Scripting Toolkit.
  10286.  
  10287. What the "List Additions" script needs is a "try/on error" block around the
  10288. call to "list events", so it can ignore the error and carry on. But then, it's
  10289. just a sample script, isn't it? :-)
  10290.  
  10291. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  10292. Info & Tech Services Division              fax: +64-7-838-4066
  10293. University of Waikato            electric mail: ldo@waikato.ac.nz
  10294. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  10295. =========================================================================
  10296. Date:         Tue, 16 Aug 1994 15:39:52 -0700
  10297. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10298. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10299. From:         Derrick Schneider <derrick@NETCOM.COM>
  10300. Subject:      Re: AS Server Application
  10301. In-Reply-To:  <199408111946.MAA01741@mail.netcom.com>
  10302.  
  10303. On Thu, 11 Aug 1994, Joe Scripter wrote:
  10304.  
  10305. > I'd like to write a script that would replace a server application I wrote
  10306. > which accepts apple events. How do I make a script recognize and respond to
  10307. > an apple event, in this case with a filespec as it's data
  10308.  
  10309. I'm not sure if this got answered (I didn't see any replies but I just
  10310. did a fairly blind purge of my mail), but here's my answer:
  10311.  
  10312. The solution is that you can have a handler within a script application
  10313. that becomes an AppleScript command of the application. This works much
  10314. the same way as intercepting the "open" message with an "on open" handler.
  10315.  
  10316. Set up your script application with the following command:
  10317. on netFoo (fileSpec)
  10318.   -- netFoo being the name of the command
  10319.   -- Do some stuff here
  10320. end netFoo
  10321.  
  10322. Now, from other scripts around the network, you can say:
  10323. tell application "Script Server" of machine "Remote Machine" of zone
  10324. "Other Zone"
  10325.    netFoo (fileSpec)
  10326. end tell
  10327.  
  10328. Sending the fileSpec might get tricky, because AS may try and resolve the
  10329. fileSpec on the local machine. I would send it as a string and then have
  10330. the netFoo handler bring it back into a file. Also, one of the file
  10331. coercers ("alias" and "file") doesn't look for the file, but simply
  10332. generates the file spec and looks for it at runtime. I don't remember
  10333. which of them does it, and this may only apply to the Read/Write
  10334. Commands. It's been too long since I used AppleScript. Sending it as a
  10335. string and having netFoo coerce it back will almost certainly work, however.
  10336.  
  10337. Derrick
  10338. =========================================================================
  10339. Date:         Tue, 16 Aug 1994 18:36:49 U
  10340. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10341. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10342. From:         mark stewart <mark_stewart@BIAD23.UTHSCSA.EDU>
  10343. Subject:      using Frontier & Excel
  10344.  
  10345.                        Subject:                               Time:6:24 PM
  10346.   OFFICE MEMO          using Frontier & Excel                 Date:8/16/94
  10347. MacScripters,
  10348. I'm using Excel and Frontier (versions 4.0 and 3.03 repectively) to keep a log
  10349. of our backup system. The project has gone smoothly up to this part. I have
  10350. completed all the scripts I need save for the following two
  10351.  
  10352. 1.) A script that launches Excel (from Frontier) and opens the log file.
  10353. There's a Frontier verb that handles this very action--app.startWithDocument (
  10354. )--that takes the app's name and the document as arguments and returns true or
  10355. false based on its success. For some reason, I can make the verb work from a
  10356. QuickScript window--app.startWithDocument ("Excel", bkupLog )-- but not in the
  10357. body of my script in the form:
  10358. excel_ok = app.startWithDocument ("Excel", bkupLog )
  10359.  
  10360. "bkupLog" is an Object Database cell containing a filespec for the log file I
  10361. want to open. Frontier starts to launch Excel, flashing a message to that
  10362. effect in its control bar, but the latter never quite makes it all the way up.
  10363. I have to hit Command-Option-Escape to force-quit Excel. Switching back to
  10364. Frontier I get an "Excel is either not running or not IAC-aware" alert.
  10365. Obviously, Excel is IAC-aware. Launching it from the QuickScript window proves
  10366. that. (Program-linking *is* switched on for Excel, by the way.)
  10367.  
  10368. So what gives? Any thoughts?
  10369.  
  10370. 2) To maintain my log file's readability I want to apply formatting for each
  10371. week. I have a range of cells that I've rather painstakingly formatted that I
  10372. would like to copy and paste to the end of the spreadsheet automatically each
  10373. Monday morning. Subsequent entries would be added into this weeky template
  10374. without the need to format each cell.
  10375. I've tried various things to do this using "Apple Events and Microsoft Excel
  10376. 4.0" and the glue scripts Frontier whips up as a guide. Without much success.
  10377. Most of these experiments involve setting a range of cells and copying and
  10378. pasting; shots in the dark. Frankly, I'm lost.
  10379.  
  10380. Any help, thoughts, or comiseration welcome!!!
  10381.  
  10382. Mark Stewart
  10383. BIAD-Research Imaging Center
  10384. UTHSCSA
  10385. =========================================================================
  10386. Date:         Tue, 16 Aug 1994 22:25:16 -0400
  10387. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10388. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10389. From:         Kiran Wagle <groo@NETCOM.COM>
  10390. Subject:      Re: WHAA!!
  10391.  
  10392. At 5:01 PM 8/16/94, Roy S. Rapoport wrote:
  10393.  
  10394. > I got my AS SDK 1.1 today from APDA. I had the impression, verified by
  10395. > APDA, that this included The Scriptable Finder.  If it does, I can't find
  10396. > it.  It has 'finder scripting software,' but not the scriptable finder.
  10397.  
  10398. If you did NOT buy the CD-ROM package, ignore my first two sentences.
  10399.  
  10400. Aha.  As I suspected.  What Apple is calling the "Finder Scripting
  10401. Software" (which is now included with the Finder Scripting Guide in the
  10402. commercial (no CD) version of the AS Scripters' package) is actually Finder
  10403. 7.1.3 with an init to provide both scripting and recording.  (This means,
  10404. of course, that those of us who don't want or need the CD are better served
  10405. by grabbing AS for $150 overnight. :-/)  I guess we have to wait for 7.5 to
  10406. get Finder 7.1.4 (which the tech support folks assured me is the finder in
  10407. 7.5beta.)
  10408.  
  10409. On startup the Finder chose to patch this init, Gatekeeper balked, and the
  10410. system crashed with error +41, "Finder not found."  I spent quite a bit of
  10411. time on the fone with a wonderful person (whose name I didn't write down,
  10412. alas) at Apple Tech Support trying to figure this out.  We didn't, but he
  10413. did tell me two thigns I didn't kow before, and was amazingly patient at
  10414. Apple's expense.
  10415.  
  10416. Anyway, if you run Gatekeeper, you'll have to grant the Finder "file res"
  10417. privileges to avoid this crash.  When the pacth is enabled, things work
  10418. fine, and you can use the Drag Manager, which is WAY cool.
  10419.  
  10420. Why did this take so long to diagnose?  because I had notification alert
  10421. dialogs turned off, and had NO CLUE that the Finder would be patching
  10422. resource attributes that may as well have been patched at the factory.
  10423.  
  10424. Good luck with it.
  10425.  
  10426. ~ Kiran
  10427.  
  10428. --
  10429. 6216 41st Avenue Hyattsville MD 20782 301/779-0756 <groo@netcom.com>
  10430. =========================================================================
  10431. Date:         Wed, 17 Aug 1994 14:39:00 +1200
  10432. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10433. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10434. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  10435.               NZ" <LDO@WAIKATO.AC.NZ>
  10436. Subject:      Re: WHAA!!
  10437.  
  10438. Kiran Wagle <groo@NETCOM.COM> writes:
  10439.  
  10440. >What Apple is calling the "Finder Scripting
  10441. >Software" (which is now included with the Finder Scripting Guide in the
  10442. >commercial (no CD) version of the AS Scripters' package) is actually Finder
  10443. >7.1.3 with an init to provide both scripting and recording.
  10444.  
  10445. It's not an init, it's an fext, if you want to get technical about it.
  10446. It's code that's only loaded by the Finder, not by the System.
  10447.  
  10448. >I guess we have to wait for 7.5 to
  10449. >get Finder 7.1.4 (which the tech support folks assured me is the finder in
  10450. >7.5beta.)
  10451.  
  10452. The code in 7.1.4 and 7.1.3 is identical. According to some release notes
  10453. I saw somewhere, the only difference was an increase in the size of a text
  10454. field in the "About This Macintosh..." window. This has something to do with
  10455. the fact that 7.1.4 is the Finder that ships with the Power Macs. ;-)
  10456.  
  10457. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  10458. Info & Tech Services Division              fax: +64-7-838-4066
  10459. University of Waikato            electric mail: ldo@waikato.ac.nz
  10460. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  10461. =========================================================================
  10462. Date:         Tue, 16 Aug 1994 21:00:45 -0700
  10463. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10464. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10465. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  10466. Subject:      Re: WHAA!!
  10467.  
  10468. At 22:25 8/16/94 -0400, Kiran Wagle wrote:
  10469. >At 5:01 PM 8/16/94, Roy S. Rapoport wrote:
  10470. >
  10471. >> I got my AS SDK 1.1 today from APDA. I had the impression, verified by
  10472. >> APDA, that this included The Scriptable Finder.  If it does, I can't find
  10473. >> it.  It has 'finder scripting software,' but not the scriptable finder.
  10474. >
  10475. >If you did NOT buy the CD-ROM package, ignore my first two sentences.
  10476. >
  10477. >Aha.  As I suspected.  What Apple is calling the "Finder Scripting
  10478. >Software" (which is now included with the Finder Scripting Guide in the
  10479. >commercial (no CD) version of the AS Scripters' package) is actually Finder
  10480. >7.1.3 with an init to provide both scripting and recording.  (This means,
  10481. >of course, that those of us who don't want or need the CD are better served
  10482. >by grabbing AS for $150 overnight. :-/)  I guess we have to wait for 7.5 to
  10483. >get Finder 7.1.4 (which the tech support folks assured me is the finder in
  10484. >7.5beta.)
  10485.  
  10486. The Scriptable Finder is readily available without buying the CD in
  10487. question.  As one example, APDA sells something like the "Finder Scripting
  10488. Update" for about $20 (since I had the necessary parts, I didn't pay much
  10489. attention).
  10490.  
  10491. Finder 7.1.4 STILL needs the Finder Scripting Extension to be the
  10492. "Scriptable Finder".  7.1.4 ships with Power Macs (and has since Power Mac
  10493. day 1).  It is 7.1.3 with only very very slight changes.  Since Tech
  10494. Support was willing to tell you that Finder 7.1.4 is in the beta 7.5, I
  10495. guess I can confirm that without blowing non-disclosure too badly.  The
  10496. Finder Scripting Extension is also on the 7.5 beta CD.
  10497.  
  10498. There was a post in a newsgroup today claiming that the poster's friend
  10499. received a new Power Mac with the System 7.5 CD.  If that's true, then the
  10500. 7.5 non-disclosure would seem to have ended anyhow (since it was to run
  10501. until the product shipped).
  10502.  
  10503.   --John
  10504.  
  10505. --
  10506. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  10507. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  10508. =========================================================================
  10509. Date:         Wed, 17 Aug 1994 16:06:17 +1200
  10510. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10511. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10512. From:         Owen Watson <owen@RSNZ.GOVT.NZ>
  10513. Subject:      Popups etc
  10514.  
  10515. I'm looking for an extension or whatever that can supply popups.
  10516.  
  10517. I want to setup a front-end for 4D Server for time-tracking so that users
  10518. have a window that has a popup showing possible projects that they could be
  10519. working on; when they change tasks they choose the new task from the popup,
  10520. and the database gets notified.
  10521.  
  10522. I looked at FrontMost/FaceSpan, but the thought of forking out $150 (& intl
  10523. courier charges) put me off; plus it seems to be a bit slow; the reminder
  10524. example on Danny's 1.1 book update disk running on a IIsi was positively
  10525. glacial. Plus, as I hear, memory leaks. . .
  10526.  
  10527. I had a quick look thru gaea, but couldn't find anything obvious (is some
  10528. kind person ever going to write a full, explanatory listing of what wonders
  10529. are enclosed on gaea/applescript?)
  10530.  
  10531.  
  10532. _________________________________________________________________________
  10533. Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
  10534. Internet watson.o@rsnz.govt.nz  Ph: +64 4 472 7421 Fax: +64 4 473 1841
  10535. The gateway to New Zealand science: http://www.rsnz.govt.nz/
  10536. =========================================================================
  10537. Date:         Tue, 16 Aug 1994 23:40:47 -0700
  10538. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10539. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10540. From:         Jon Pugh <jonpugh@NETCOM.COM>
  10541. Subject:      Re: Visual cues that an AppleScript is running
  10542.  
  10543. From: "Andy Cemelli" <ANDYC@WORDPERFECT.COM>
  10544. >check out the spinning globe that at the very least is in our product
  10545. >WordPerfect....
  10546.  
  10547. Ah yes, the spinning globe.  I had that in the Finder some versions back.
  10548. Trivia tip:  If you want to replace the Finder's busy cursor, place an acur
  10549. and CURS resources in your Finder Preferences file.  You'll have to make a
  10550. copy in order to do that, but it's much better than hacking the Finder
  10551. itself!
  10552.  
  10553. From: Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU>
  10554. >How about a small script document as a cursor where each successive line
  10555. >highlights and then moves to the next line. It would look like the document is
  10556. >being read (or the script is being performed). You could also make the lines
  10557. >scroll up making it look like it's going through the script.
  10558.  
  10559. Why don't you ResEdit hackers crank out some acur, CURS and crsr resources?
  10560. I'll use them if someone wants to whip some up.  I might even get time to
  10561. try doing some of my own.  ;)
  10562.  
  10563. Jon
  10564. =========================================================================
  10565. Date:         Wed, 17 Aug 1994 09:18:58 +0100
  10566. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10567. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10568. From:         M.R.LESBIREL@LIVJM.AC.UK
  10569. Subject:      Power Mac and Finder
  10570.  
  10571. I disagree with the claim that Power Macintosh has always shipped with Finder
  10572. 7.1.3 or upwards. The one I'm sitting in front of, here in England, shipped with
  10573. Finder 7.1.2.
  10574.  
  10575. If this is just England or is true for the first Power Macs I don't know.
  10576.  
  10577. Martyn Lesbirel - Computing Officer
  10578. Liverpool John Moores University
  10579.  
  10580. M.R.Lesbirel@livjm.ac.uk
  10581. =========================================================================
  10582. Date:         Wed, 17 Aug 1994 07:57:27 -0400
  10583. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10584. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10585. From:         Frank Lowney <flowney@LIBRIS.PUBLIC.LIB.GA.US>
  10586. Subject:      HyperTalk/AppleScript communication
  10587.  
  10588. This button script (using HyperTalk in HyperCard) works:
  10589.  
  10590. on mouseUp
  10591.   global response
  10592.   put response into cd fld "testF"
  10593. end mouseUp
  10594.  
  10595. This button script (using AppleScript in HyperCard) does not work:
  10596.  
  10597. on mouseUp
  10598.         global response
  10599.         tell application "HyperCard"
  10600.                 copy response to card field "testF"
  10601.         end tell
  10602. end mouseUp
  10603.  
  10604. I get the following error message:
  10605.  
  10606.         The variable response is not defined.
  10607.  
  10608. Now this is a simple script so it wasn't a problem in this case but
  10609. clicking on the "script" button of this dialog showed me the offending
  10610. script but DID NOT place the cursor on the offending line.  Hrummph!
  10611.  
  10612. I know that the HyperTalk global is viable throughout the testing as I can
  10613. subsequently run the first (successful) test after the second
  10614. (unsuccessful) test and see it work just fine.
  10615.  
  10616. Thus, I am now quite curious as to how HyperTalk and AppleScript (indeed
  10617. any combination of OSA-compliant scripting languages) might best
  10618. communicate with one another without having to write data to disk in any
  10619. way.
  10620.  
  10621. This example covers what I think should be the HyperTalk to AppleScript
  10622. dialog.  A few weeks ago I was persuing the AppleScript to HyperTalk side
  10623. of the conversation and learned the following from Peter Speck:
  10624.  
  10625. on mouseUp
  10626.         copy ((the first item of (list disks)) & ":") to diskName
  10627.         copy "Untitled.GIF" to filename
  10628.  
  10629.         -- the easiest way to create variables!
  10630.         do script "global GIFTempDiskName,GIFTempFileName"
  10631.  
  10632.         copy diskName to variable "GIFTempDiskName"
  10633.         copy "Untitled.GIF" to variable "GIFTempFileName"
  10634. end mouseUp
  10635.  
  10636. My interpretation of this led me to:
  10637.  
  10638.  
  10639. [...a bunch of AppleScript code...]
  10640.  
  10641.         tell application "HyperCard"
  10642.                 do script "global fileONE"
  10643.                 copy DataRecd to variable "fileONE"
  10644.         end tell
  10645.  
  10646. ...which does a fine job of getting the contents of an AppleScript variable
  10647. (DataRecd) into a HyperCard global (fileONE).
  10648.  
  10649. What I am looking for are the general rules for exchanging data contained
  10650. in global variables between HyperTalk and AppleScript.
  10651.  
  10652. I have most of the currently available references for both HyperTalk and
  10653. AppleScript but so far have failed to find a thorough discussion of the
  10654. topic of OSA script intercommunication.  Please point me in the direction
  10655. of such a reference if there is one or, better yet, explain this to me and
  10656. to any others who might be as puzzled as I.
  10657.  
  10658. =====================================================================
  10659. Dr. Frank Lowney, Director, Regional Teacher Education Center
  10660.                   System Administrator, The GC EduNET Project
  10661. CBX 034, School of Education
  10662. Georgia College, Milledgeville, GA 31061-0490
  10663. Voice: (912) 453-5121
  10664. via GC EduNET, Georgia's Statewide K-12 Education Network, telnet to:
  10665.         gcedunet.peachnet.edu
  10666. =====================================================================
  10667. =========================================================================
  10668. Date:         Wed, 17 Aug 1994 08:29:35 -0400
  10669. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10670. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10671. From:         Kiran Wagle <groo@NETCOM.COM>
  10672. Subject:      AS Programmers' Dialect
  10673.  
  10674. Hi folks,
  10675.  
  10676. The AS manual mentions something called the "Programmers' Dialect."
  10677.  
  10678. Does anyone know if this actually exists, and where it can be found?
  10679.  
  10680. Thanks,
  10681.  
  10682. ~ Kiran
  10683.  
  10684. --
  10685. 6216 41st Avenue Hyattsville MD 20782 301/779-0756 <groo@netcom.com>
  10686. =========================================================================
  10687. Date:         Wed, 17 Aug 1994 14:57:55 +0100
  10688. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10689. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10690. From:         Johan Solve <johan.solve@ITN.HH.SE>
  10691. Subject:      Eudora 1.4.3 auto-sorting?
  10692.  
  10693. I need a way to automatically sort my different mailboxes by date. Is it
  10694. possible to do this with AppleScript?
  10695. The dictionary of Eudora doesn't mention sorting, but perhaps I'm
  10696. overlooking something. Perhaps the easiest way is to use the MenuEvents
  10697. extension and osax to cycle through the mailboxes and sort each one of
  10698. them?
  10699.  
  10700. Please Cc: replies to johan.solve@itn.hh.se. I don't keep up with the mail
  10701. flow in Macscripting.
  10702.  
  10703. ____________________________________________________________________
  10704.          "
  10705.   JOHAN SOLVE                Department of Science and Technology
  10706.   <johan.solve@itn.hh.se>    University College of Halmstad, Sweden
  10707. =========================================================================
  10708. Date:         Wed, 17 Aug 1994 09:25:47 -0400
  10709. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10710. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10711. From:         Frank Lowney <flowney@MAIL.GAC.PEACHNET.EDU>
  10712. Subject:      Re: Popups etc
  10713.  
  10714. >I'm looking for an extension or whatever that can supply popups.
  10715. >
  10716. >I want to setup a front-end for 4D Server for time-tracking so that users
  10717. >have a window that has a popup showing possible projects that they could be
  10718. >working on; when they change tasks they choose the new task from the popup,
  10719. >and the database gets notified.
  10720. >
  10721. >I looked at FrontMost/FaceSpan, but the thought of forking out $150 (& intl
  10722. >courier charges) put me off; plus it seems to be a bit slow; the reminder
  10723. >example on Danny's 1.1 book update disk running on a IIsi was positively
  10724. >glacial. Plus, as I hear, memory leaks. . .
  10725. >
  10726. >I had a quick look thru gaea, but couldn't find anything obvious (is some
  10727. >kind person ever going to write a full, explanatory listing of what wonders
  10728. >are enclosed on gaea/applescript?)
  10729. >
  10730. HyperCard 2.2 will do popup buttons quite nicely AND it supports
  10731. AppleScript as well as HyperTalk.  The new clickable lists are cool too!
  10732.  
  10733. =====================================================================
  10734. Dr. Frank Lowney, Director, Regional Teacher Education Center
  10735.                   System Administrator, The GC EduNET Project
  10736. CBX 034, School of Education
  10737. Georgia College, Milledgeville, GA 31061-0490
  10738. Voice: (912) 453-5121
  10739. via GC EduNET, Georgia's Statewide K-12 Education Network, telnet to:
  10740.         gcedunet.peachnet.edu
  10741. =====================================================================
  10742. =========================================================================
  10743. Date:         Wed, 17 Aug 1994 07:58:14 U
  10744. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10745. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10746. From:         Roy Roper <r-roper@UIUC.EDU>
  10747. Subject:      Re> Eudora 1.4.3 auto-sorting?
  10748.  
  10749. fyi
  10750.  
  10751. There is an aoce listserv in operation from the University of Michigan.
  10752. Some of these issues are also being discussed there.
  10753. Information about this list serv can be obtained by contacting
  10754. gavin.eadie@umich.edu --
  10755.  
  10756.  ------ From: Macintosh Scripting Systems, Wed, Aug 17, 1994 ------
  10757.  
  10758. I need a way to automatically sort my different mailboxes by date. Is it
  10759. possible to do this with AppleScript?
  10760. The dictionary of Eudora doesn't mention sorting, but perhaps I'm
  10761. overlooking something. Perhaps the easiest way is to use the MenuEvents
  10762. extension and osax to cycle through the mailboxes and sort each one of
  10763. them?
  10764.  
  10765. Please Cc: replies to johan.solve@itn.hh.se. I don't keep up with the mail
  10766. flow in Macscripting.
  10767.  
  10768. ____________________________________________________________________
  10769.          "
  10770.   JOHAN SOLVE                Department of Science and Technology
  10771.   <johan.solve@itn.hh.se>    University College of Halmstad, Sweden
  10772. =========================================================================
  10773. Date:         Wed, 17 Aug 1994 08:21:00 -0700
  10774. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10775. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10776. From:         "Evad, Paul" <PEVAD@PUBAFFAIR.ENV.GOV.BC.CA>
  10777. Subject:      Re: WHAA!!
  10778.  
  10779. >The Scriptable Finder is readily available without buying the CD in
  10780. >question.  As one example, APDA sells something like the "Finder Scripting
  10781. >Update" for about $20 (since I had the necessary parts, I didn't pay much
  10782. >attention).
  10783.  
  10784. >Finder 7.1.4 STILL needs the Finder Scripting Extension to be the
  10785. >"Scriptable Finder".  7.1.4 ships with Power Macs (and has since Power Mac
  10786. day 1).
  10787.  
  10788. I'm still a bit confused on this subject. I have a power mac with Finder
  10789. 7.1.4, so from this thread I understand that I need an extension "Finder
  10790. Scripting Extension".
  10791.  
  10792. Is this extension available from an FTP site or anything, you would think
  10793. that it would have been included in the Power Mac's.
  10794.  
  10795. - Paul Evad
  10796. uj032@freenet.victoria.bc.ca
  10797. =========================================================================
  10798. Date:         Wed, 17 Aug 1994 09:05:58 -0700
  10799. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10800. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10801. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  10802. Subject:      Re: Power Mac and Finder
  10803.  
  10804. >I disagree with the claim that Power Macintosh has always shipped with Finder
  10805. >7.1.3 or upwards. The one I'm sitting in front of, here in England, shipped
  10806. >with
  10807. >Finder 7.1.2.
  10808. >
  10809. >If this is just England or is true for the first Power Macs I don't know.
  10810.  
  10811. It might be a localization matter.  However:  here, the System version is
  10812. 7.1.2 on the Power Mac CD, but the Finder version is 7.1.4.  Try doing a
  10813. Finder Get Info command on the Finder icon in your system folder.
  10814.  
  10815. The System and Finder versions desynchonized as of "System 7Pro".
  10816.  
  10817.    --John
  10818.  
  10819. --
  10820. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  10821. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  10822. =========================================================================
  10823. Date:         Wed, 17 Aug 1994 12:15:54 -0400
  10824. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10825. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10826. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  10827. Subject:      Re: WHAA!!
  10828. In-Reply-To:  <no.id> from "Evad, Paul" at Aug 17, 94 08:21:00 am
  10829.  
  10830. --Evad, Paul wrote:
  10831. >
  10832. >I'm still a bit confused on this subject. I have a power mac with Finder
  10833. >7.1.4, so from this thread I understand that I need an extension "Finder
  10834. >Scripting Extension".
  10835.  
  10836.     You will need Finder Scripting Extension if you plan to do any
  10837. serious scripting of the Finder with AppleScript. Or if you would like
  10838. to be able to record AppleScripts from the Finder.
  10839.  
  10840. >Is this extension available from an FTP site or anything, you would think
  10841. >that it would have been included in the Power Mac's.
  10842.  
  10843.     Well, you might think that, but that's now how AppleScript has
  10844. evolved. If you just want the Finder Scripting Extension you can order
  10845. the Finder Scripting Update from APDA for about $20, and it includes the
  10846. AppleScript Finder Guide (English Dialect). A great book that can be
  10847. found for $19.95 at fine bookstores near you (Our main bookstore had it
  10848. in stock ;).
  10849.  
  10850. -Hades
  10851. =========================================================================
  10852. Date:         Wed, 17 Aug 1994 11:13:54 -0500
  10853. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10854. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10855. From:         "Fred.Terry." <pfterry@LKS.CSI.COM>
  10856. Subject:      creation of a MacScripting newsgroup
  10857.  
  10858. Folks,
  10859.  
  10860. I've been asked again to convert the MacScripting mailing list into a
  10861. newsgroup. While I'm not crazy about this idea, Andy and I have decided to
  10862. investigate the possiblities. However, before I initiate the rather lengthy
  10863. process of creating a newsgroup, I want to find out how many of the nearly
  10864. 800
  10865. people on this list want a newsgroup.
  10866.  
  10867. I have attached a polling form to the end of this message. I'd appreciate
  10868. your
  10869. completing and returning it DIRECTLY to me at pfterry@lks.csi.com if you are
  10870. interested in participating. Please do not send the form back into the list.
  10871. Let's keep the bandwidth low. WARNING: on most systems, replying to this
  10872. message automatically sends the mail back into the list. YOU HAVE TO PUT MY
  10873. ADDRESS IN THE TO FIELD. Sorry to yell, but sometimes we don't pay attention:
  10874. I'm a parent; I know.
  10875.  
  10876. The poll is open until August 31; I'll go with the responses I get in that 2
  10877. week period.
  10878.  
  10879. For any of you that don't want to see the mailing list go away, I will say
  10880. that the listserv gods at Dartmouth tell me I can gateway the mailing list
  10881. into the newsgroup (and vice versa). If we ultimately go through with the
  10882. creation of a newsgroup, the mailing list will not go away.
  10883.  
  10884. A final note: I'm not worrying about a newsgroup name at the moment, so I'll
  10885. ignore any name proposals.
  10886.  
  10887. Thanks for taking the time to read and respond to this message. Sorry for
  10888. increasing the mailing load with administrative matters.
  10889.  
  10890. pf
  10891.  
  10892.  
  10893. ~~~~~~~~~~~~~~~~~~~~~~~~~~~SNIP HERE~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  10894.  
  10895. Should I begin the process of creating a MacScripting newsgroup?
  10896.  
  10897. ____ Yes
  10898.  
  10899. ____ No
  10900.  
  10901.  
  10902. Should the mailing list be maintained and messages gatewayed to the newsgroup
  10903. and vice versa.
  10904.  
  10905. ____ Yes
  10906.  
  10907. ____ No
  10908. =========================================================================
  10909. Date:         Wed, 17 Aug 1994 09:40:33 -0700
  10910. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10911. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10912. From:         "Thomas C. O'Brien" <tomo@UCLINK.BERKELEY.EDU>
  10913. Subject:      Re: HyperTalk/AppleScript communication
  10914.  
  10915. Frank,
  10916.  
  10917. This is indeed a painful "feature" of Applescript & HyperCard.  I
  10918. discovered that the only way to pass information seems to be through
  10919. function calls.
  10920.  
  10921. Applescript button:
  10922. on mouseUp
  10923.          copy getrecipients() to recipients
  10924.  
  10925.         tell application "Eudora1.4.3"
  10926.                 make message InsertHere end of mailbox "out" of mail folder ""
  10927.                 set field "to" of message 0 to recipients
  10928.                 set field "subject" of message 0 to "This is a test"
  10929.                 set field "" of message 0 to "text for the body of the message"
  10930.                 --queue message 0
  10931.                 --Eudora Script Courtesy of QualComm
  10932.                 activate
  10933.         end tell
  10934. end mouseUp
  10935.  
  10936.  
  10937. Then in the Stack (or BG or Card) Script:
  10938. on getrecipients
  10939.       get cd fld "e-mailees" of cd "e-mail"
  10940.      put it into recipients
  10941.      return recipients    (anything "returned" gets passed back to the
  10942. AppleScript)
  10943. end getrecipients
  10944.  
  10945.  
  10946. Regards,
  10947.  
  10948. Tom O'Brien
  10949.  
  10950.  
  10951. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  10952. Thomas C. O'Brien
  10953. Instructional Technology Coordinator
  10954. Academic Achievement Division
  10955. 2515 Channing Way
  10956. UC Berkeley
  10957. Berkeley CA 94720
  10958.  
  10959. <a href="http://128.32.252.17/Tomo's_Home_Page.html">Tomo -
  10960. tomo@uclink.berkeley.edu</a>
  10961. (510) 643-9569
  10962. =========================================================================
  10963. Date:         Wed, 17 Aug 1994 13:27:29 -0400
  10964. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10965. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10966. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  10967. Subject:      Re: creation of a MacScripting newsgroup
  10968. In-Reply-To:  <no.id> from "Fred.Terry." at Aug 17, 94 11:13:54 am
  10969.  
  10970. --Fred Terry wrote:
  10971. >
  10972. >I've been asked again to convert the MacScripting mailing list into a
  10973. >newsgroup. While I'm not crazy about this idea, Andy and I have decided
  10974. >to investigate the possiblities. However, before I initiate the rather
  10975. >lengthy process of creating a newsgroup, I want to find out how many of
  10976. >the nearly 800 people on this list want a newsgroup.
  10977.  
  10978.     I'll be voting on the poll later... Back before the creation of the
  10979. MacScrpt mailing list there was a lot of discussion about the creation
  10980. of a Scripting newsgroup. It seemed to garner some support, but having
  10981. seen how little traffic there is in the comp.sys.mac.* newsgroups on
  10982. AppleScript (there's actually more on the Info-Mac digest than in all of
  10983. the csm.* groups combined these days) I don't think creating a newsgroup
  10984. is going to help anyone out. Most of the people who ask a lot of
  10985. scripting questions get pointed to this mailing list, and most of us
  10986. here seem pretty happy with things the way they are. And I, personally,
  10987. have a really big problem with the "if you build it, they will come"
  10988. philosophy of newsgroup creation. So I guess that's about all I have to
  10989. say on this, I'll go vote in the poll now.
  10990.  
  10991. -Hades
  10992. =========================================================================
  10993. Date:         Wed, 17 Aug 1994 13:28:56 -0400
  10994. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10995. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10996. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  10997. Subject:      Re: creation of a MacScripting newsgroup
  10998. In-Reply-To:  <no.id> from "Fred.Terry." at Aug 17, 94 11:13:54 am
  10999.  
  11000. Should I begin the process of creating a MacScripting newsgroup?
  11001.  
  11002. ____ Yes
  11003.  
  11004. _xx_ No
  11005.  
  11006.  
  11007. Should the mailing list be maintained and messages gatewayed to the newsgroup
  11008. and vice versa.
  11009.  
  11010. _xx_ Yes
  11011.  
  11012. ____ No
  11013. =========================================================================
  11014. Date:         Wed, 17 Aug 1994 11:06:35 -0800
  11015. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11016. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11017. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  11018. Subject:      Looking for beta testers
  11019.  
  11020. Aladdin Systems is looking for a few good testers to help us out in testing
  11021. the COMPLETELY REVAMPED (read: Object Model) Apple event support in the
  11022. forthcoming StuffIt Deluxe 3.5.
  11023.  
  11024. To qualify, you must already be a registered owner of StuffIt Deluxe and be
  11025. a knowledgable and experienced scripter (AppleScript, Frontier, HyperTalk,
  11026. QuicKey Script, etc.)  You must also have FTP access and be willing to deal
  11027. with "unfinished" software.
  11028.  
  11029. If you are both qualified and interested, please send a message to
  11030. dalamar@netcom.com (DO NOT RESPOND TO THIS MESSAGE - I WILL IGNORE IT!!!!)
  11031. telling us who you are and your qualifications for the job....
  11032.  
  11033.  
  11034. Thanks in advance!
  11035.  
  11036.  
  11037. Leonard Rosenthol
  11038. Aladdin Systems, Inc.
  11039.  
  11040. -----------------------------------------------------------------------------
  11041. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  11042. Director of Advanced Technology         AppleLink:      MACgician
  11043. Aladdin Systems, Inc.                   GEnie:          MACgician
  11044. =========================================================================
  11045. Date:         Wed, 17 Aug 1994 14:29:58 -0500
  11046. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11047. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11048. From:         Fred Terry <pfterry@LKS.CSI.COM>
  11049. Subject:      Re: creation of a MacScripting newsgroup
  11050. In-Reply-To:  Your message of "Wed, 17 Aug 94 13:27:29 EDT"
  11051.  
  11052. Brian,
  11053.  
  11054. >>I've been asked again to convert the MacScripting mailing list into a
  11055. >>newsgroup. While I'm not crazy about this idea, Andy and I have decided
  11056. >>to investigate the possiblities. However, before I initiate the rather
  11057. >>lengthy process of creating a newsgroup, I want to find out how many of
  11058. >>the nearly 800 people on this list want a newsgroup.
  11059. >
  11060. >    I'll be voting on the poll later... Back before the creation of the
  11061. >MacScrpt mailing list there was a lot of discussion about the creation
  11062. >of a Scripting newsgroup. It seemed to garner some support, but having
  11063. >seen how little traffic there is in the comp.sys.mac.* newsgroups on
  11064. >AppleScript (there's actually more on the Info-Mac digest than in all of
  11065. >the csm.* groups combined these days) I don't think creating a newsgroup
  11066. >is going to help anyone out. Most of the people who ask a lot of
  11067. >scripting questions get pointed to this mailing list, and most of us
  11068. >here seem pretty happy with things the way they are. And I, personally,
  11069. >have a really big problem with the "if you build it, they will come"
  11070. >philosophy of newsgroup creation. So I guess that's about all I have to
  11071. >say on this, I'll go vote in the poll now.
  11072.  
  11073. I remember your messages. I feel the same way today that I did back then: a
  11074. newsgroup is a big lose. I'm not certain that the newsgroup is going to
  11075. improve communication. I have a hunch that the noise ratio will increase. Some
  11076. people who aren't on the list but are on CI$ and AOL talked to a guy at Main
  11077. Event that I know. They all seemed to think that this should be a newsgroup,
  11078. though I can't imagine why. It has to be more expensive to read news than get
  11079. mail on the commercial services.
  11080.  
  11081. As an aside, I've only had about 10 messages over the last year requesting the
  11082. newsgroup, but the poll is predominately positive. I dunno.
  11083.  
  11084. Thanks for taking the time to send a comment along with the "ballot".
  11085.  
  11086. pf
  11087. =========================================================================
  11088. Date:         Wed, 17 Aug 1994 13:23:28 -0700
  11089. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11090. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11091. From:         Steve Michel <michel@NETCOM.COM>
  11092. Subject:      Re: creation of a MacScripting newsgroup
  11093.  
  11094. >Folks,
  11095. >
  11096. >I've been asked again to convert the MacScripting mailing list into a
  11097. >newsgroup. While I'm not crazy about this idea, Andy and I have decided to
  11098. >investigate the possiblities. However, before I initiate the rather lengthy
  11099. >process of creating a newsgroup, I want to find out how many of the nearly
  11100. >800
  11101. >people on this list want a newsgroup.
  11102. >
  11103. >I have attached a polling form to the end of this message. I'd appreciate
  11104. >your
  11105. >completing and returning it DIRECTLY to me at pfterry@lks.csi.com if you are
  11106. >interested in participating. Please do not send the form back into the list.
  11107. >Let's keep the bandwidth low. WARNING: on most systems, replying to this
  11108. >message automatically sends the mail back into the list. YOU HAVE TO PUT MY
  11109. >ADDRESS IN THE TO FIELD. Sorry to yell, but sometimes we don't pay attention:
  11110. >I'm a parent; I know.
  11111. >
  11112. >The poll is open until August 31; I'll go with the responses I get in that 2
  11113. >week period.
  11114. >
  11115. >For any of you that don't want to see the mailing list go away, I will say
  11116. >that the listserv gods at Dartmouth tell me I can gateway the mailing list
  11117. >into the newsgroup (and vice versa). If we ultimately go through with the
  11118. >creation of a newsgroup, the mailing list will not go away.
  11119. >
  11120. >A final note: I'm not worrying about a newsgroup name at the moment, so I'll
  11121. >ignore any name proposals.
  11122. >
  11123. >Thanks for taking the time to read and respond to this message. Sorry for
  11124. >increasing the mailing load with administrative matters.
  11125. >
  11126. >pf
  11127. >
  11128. >
  11129. >~~~~~~~~~~~~~~~~~~~~~~~~~~~SNIP HERE~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  11130. >
  11131. >Should I begin the process of creating a MacScripting newsgroup?
  11132. >
  11133. >__x__ Yes
  11134. >
  11135. >____ No
  11136. >
  11137. >
  11138. >Should the mailing list be maintained and messages gatewayed to the newsgroup
  11139. >and vice versa.
  11140. >
  11141. >__x__ Yes
  11142. >
  11143. >____ No
  11144. =========================================================================
  11145. Date:         Wed, 17 Aug 1994 13:34:16 -0800
  11146. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11147. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11148. From:         Kee Nethery +1 408 974 7889 <kee@KAGI.COM>
  11149. Subject:      Re: HyperTalk/AppleScript communication
  11150.  
  11151. >This is indeed a painful "feature" of Applescript & HyperCard.  I
  11152. >discovered that the only way to pass information seems to be through
  11153. >function calls.
  11154.  
  11155. I find that AppleScript can pull info directly from fields but that the
  11156. abbreviations for card and field and background do not work. You must spell
  11157. them out.
  11158.  
  11159. AppleScript button
  11160. on mouseup
  11161.         Copy card field "the message" to themsg
  11162.         Copy card field "the addresses" to theadd
  11163.         tell application "Eudora1.4.3"
  11164.                 make message InsertHere end of mailbox "out" of mail folder ""
  11165.                 set field "to" of message 0 to theadd
  11166.                 set field "subject" of message 0 to "This is a test"
  11167.                 set field "" of message 0 to themsg
  11168.                 queue message 0
  11169.                 activate
  11170.         end tell
  11171. end mouseUp
  11172.  
  11173.  
  11174. Kee Nethery
  11175.  
  11176. __________________________________________________________________
  11177. Kee Nethery
  11178. 1442-A Walnut Street #362
  11179. Berkeley, CA 94709-1405
  11180. =========================================================================
  11181. Date:         Wed, 17 Aug 1994 17:54:36 -0400
  11182. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11183. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11184. From:         Lee Hoong <lhoong@EMORYU1.CC.EMORY.EDU>
  11185. Subject:      Re: creation of a MacScripting newsgroup
  11186.  
  11187. >They all seemed to think that this should be a newsgroup,
  11188. >though I can't imagine why. It has to be more expensive to read news than get
  11189. >mail on the commercial services.
  11190. >
  11191. >As an aside, I've only had about 10 messages over the last year requesting the
  11192. >newsgroup, but the poll is predominately positive. I dunno.
  11193.  
  11194. Here's another perspective on this issue:
  11195.  
  11196. It is my impression that many local user group BBS's may have Internet
  11197. e-mail access but no access to other Internet services like the newsgroups;
  11198. actually, some of the commercial BBS's do not have access to newsgroups
  11199. either.  However, the common thread, in terms of access, is e-mail.  It
  11200. seems to me that a mailing list is a better vehicle for most people,
  11201. especially those without newsgroup access.
  11202.  
  11203. Just my 2 cents.
  11204.  
  11205. Lee.
  11206.  
  11207. Lee K. Hoong
  11208. Emory University
  11209. Atlanta, GA 30322
  11210. Internet: lhoong@unix.cc.emory.edu
  11211. AOL: LHOONG
  11212. ==========================
  11213. Opinions and comments expressed are mine; I do not represent Emory
  11214. University.
  11215. =========================================================================
  11216. Date:         Wed, 17 Aug 1994 15:24:22 -0700
  11217. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11218. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11219. From:         Doug Baron <userland@NETCOM.COM>
  11220. Subject:      Re: using Frontier & Excel
  11221.  
  11222. >
  11223. >1.) A script that launches Excel (from Frontier) and opens the log file.
  11224. >There's a Frontier verb that handles this very action--app.startWithDocument (
  11225. >)--that takes the app's name and the document as arguments and returns true or
  11226. >false based on its success. For some reason, I can make the verb work from a
  11227. >QuickScript window--app.startWithDocument ("Excel", bkupLog )-- but not in the
  11228. >body of my script in the form:
  11229. >excel_ok = app.startWithDocument ("Excel", bkupLog )
  11230. >
  11231. >"bkupLog" is an Object Database cell containing a filespec for the log file I
  11232. >want to open. Frontier starts to launch Excel, flashing a message to that
  11233. >effect in its control bar, but the latter never quite makes it all the way up.
  11234. >I have to hit Command-Option-Escape to force-quit Excel. Switching back to
  11235. >Frontier I get an "Excel is either not running or not IAC-aware" alert.
  11236. >Obviously, Excel is IAC-aware. Launching it from the QuickScript window proves
  11237. >that. (Program-linking *is* switched on for Excel, by the way.)
  11238. >
  11239.  
  11240. I've seen this sort of problem before with Excel. It seems to be
  11241. timing-related. It only happens when Excel needs to be launch, right? If
  11242. so, you might try spacing out the time between the launch and the open
  11243. event:
  11244.  
  11245.         if not sys.appIsRunning (Excel.id)
  11246.                 app.startWithDocument ("Excel", "" )
  11247.                 clock.waitSeconds (4)
  11248.         Excel.openDocument (bkupLog)
  11249.  
  11250.  
  11251. >2) To maintain my log file's readability I want to apply formatting for each
  11252. >week. I have a range of cells that I've rather painstakingly formatted that I
  11253. >would like to copy and paste to the end of the spreadsheet automatically each
  11254. >Monday morning. Subsequent entries would be added into this weeky template
  11255. >without the need to format each cell.
  11256. >I've tried various things to do this using "Apple Events and Microsoft Excel
  11257. >4.0" and the glue scripts Frontier whips up as a guide. Without much success.
  11258. >Most of these experiments involve setting a range of cells and copying and
  11259. >pasting; shots in the dark. Frankly, I'm lost.
  11260. >
  11261.  
  11262. What specific formatting elements? Here's how to copy over a couple; you
  11263. can extrapolate using appropriate foratting names from the Excel verb
  11264. table:
  11265.  
  11266. with objectModel, Excel, document [1]
  11267.         x = get (cell ["r1c1"].style)
  11268.         set (cell [new].style, x)
  11269.  
  11270.         x = get (cell ["r1c1"].bottomBorder)
  11271.         set (cell [new].bottomBorder, x)
  11272.  
  11273.         etc.
  11274.  
  11275. Doug
  11276. =========================================================================
  11277. Date:         Wed, 17 Aug 1994 18:55:11 -0500
  11278. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11279. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11280. From:         Steve Jones <STJONES@ACAD1.MTSU.EDU>
  11281. Subject:      Re: creation of a MacScripting newsgroup
  11282.  
  11283. Some folks on this list seem to be able to script but not read.
  11284.  
  11285. Didn't the poll ask specifically that you NOT mail replies back to thelist!?!
  11286.  
  11287.  
  11288. stj
  11289. Steven T. Jones
  11290. Assistant Professor of Design & Technology
  11291. Middle Tennessee State University
  11292. =========================================================================
  11293. Date:         Thu, 18 Aug 1994 09:51:10 +0800
  11294. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11295. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11296. From:         Craig Richmond <craig@ECEL.UWA.EDU.AU>
  11297. Subject:      Re: creation of a MacScripting newsgroup
  11298.  
  11299. >I've been asked again to convert the MacScripting mailing list into a
  11300. >newsgroup. While I'm not crazy about this idea, Andy and I have decided to
  11301. >investigate the possiblities. However, before I initiate the rather lengthy
  11302. >process of creating a newsgroup, I want to find out how many of the nearly 800
  11303. >people on this list want a newsgroup.
  11304.  
  11305. These debates rage regularly in mailing lists and are accompanied by the
  11306. just as common "Lets split the newsgroup" debates.
  11307.  
  11308. Mailing lists are appropriate when :-
  11309.  
  11310.   * subject matter is targeted at a small special interest group
  11311.   * the number of likely contributers is small
  11312.   * nobody other than the contributers will be interested
  11313.   * the discussions/information are be private
  11314.  
  11315. Newsgroups are appropriate when :-
  11316.  
  11317.   * subject matter is of interest to hundreds/thousands of people
  11318.   * there are many potential contributers
  11319.   * people other than the primary contributers are likely to gain from the info
  11320.  
  11321. When Applescript first came out, it was so special interest that a
  11322. newsgroup would not have been warranted.  With 800 people on the list, it
  11323. is perhaps time to create a newsgroup and do our best to spread the word to
  11324. the rest of the macintosh community.  Applescript is an underutilised
  11325. resource.  With the immenant release of 7.5, everyone will end up with
  11326. copies of Applescript on their computers (legally or illegally) within a
  11327. year or so.  If creating a a newsgroup helps encourage and foster
  11328. Applescript adoption by the masses, then it can only be good for us.  If
  11329. you are going to make a newsgroup, I would suggest that it goes under
  11330. programmer because that is what most of the traffic has been and there are
  11331. unlikely to be too many applescript related non-programmer inquiries
  11332. anyway.
  11333.  
  11334. MACSCRIPT has become a very high volume group.  It accounted for about 40%
  11335. of my mail while I was away for a couple of weeks.  There are probably a
  11336. lot of people who can read newsgroups for free but must pay for each
  11337. message they send/recieve.  Having a newsgroup makes life a lot easier for
  11338. these people.  It is convenient to let the gateway thing work, but if the
  11339. newsgroup takes off big time, you are going to get enormous amounts of
  11340. traffic.  Imagine c.s.m.programmer landing in your mailbox every day!
  11341.  
  11342. I'm not going to vote seeing as I am pretty much a lurker and don't end up
  11343. reading much anyway.  In this sense a newsgroup would probably suit me
  11344. better as well.  Newsgroups get better network utilisation than mailing
  11345. lists because only one copy of a message should traverse any network link.
  11346.  
  11347. So bear this in mind people and make your decision.
  11348.  
  11349. Craig
  11350.  
  11351. --
  11352. Craig Richmond, Computer Officer, ECEL Computing Services  +61 9 380 1405
  11353. The University of Western Australia      or 380 3860 Email for FAX Number
  11354. craig@ecel.uwa.edu.au Dvorak Keyboards RULE!  "Messes are only acceptable
  11355. if users make them.  Applications aren't allowed this freedom" I.M.VI 2-4
  11356. =========================================================================
  11357. Date:         Thu, 18 Aug 1994 02:03:52 -0400
  11358. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11359. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11360. From:         Kiran Wagle <groo@NETCOM.COM>
  11361. Subject:      Scripting newsgroup, and SLIP
  11362.  
  11363. > Should the mailing list be maintained and messages gatewayed to the newsgroup
  11364. > and vice versa.
  11365.  
  11366. No no, a thousand times no!  The list should be maintained, but NOT
  11367. gatewayed to the newsgroup or vice versa.  Gatewaying the early music
  11368. mailing list to rec.musc.early has been a big source of headaches for those
  11369. who can't handle the volume and noise and orneriness of a usenet newsgroup
  11370. dumped into their mailbox.
  11371.  
  11372. Of course, WE have scripts and filters to manage thigns better than they do.
  11373.  
  11374. That said, I'm ambivalent on the notion of a newsgroup.  When i first got a
  11375. copy of AS, I DID look for comp.sys.mac.scripting, or at least I would have
  11376. if I'd not been told of the list sooner.  So perhaps it is a good idea,
  11377. low-volume or not, because it's a way to spread the word about the list in
  11378. a form that people will notice.  OTOH, I'm don't know if the volume makes
  11379. it worthwhile--yet.
  11380.  
  11381. I think, however, that as scriptable apps become more common, and AS
  11382. becomes more commonly available, we'll see a lot more scripters.  But do we
  11383. want the clueless newbie questions dumped into the mailboxes of those of us
  11384. who are too busy to deal?
  11385.  
  11386. Speaking of clueless newbies, I seem to recall rumors of scripting (Inter?)
  11387. SLIP?  Since I just got a copy of The Internet Adapter (tm), I need a good
  11388. SLIP, and I'd prefer a scriptable one.  I can't find anything for SLIP on
  11389. the archives, tho I did find a PPP.
  11390.  
  11391. ~ Kiran <groo@netcom.com> (who always answers clueless Eudora questions)
  11392.  
  11393. --
  11394. 6216 41st Avenue Hyattsville MD 20782 301/779-0756 <groo@netcom.com>
  11395. =========================================================================
  11396. Date:         Thu, 18 Aug 1994 09:00:43 +0100
  11397. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11398. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11399. From:         M.R.LESBIREL@LIVJM.AC.UK
  11400. Subject:      Re: Power Mac and Finder
  11401.  
  11402. >It might be a localization matter.  However:  here, the System version is
  11403. >7.1.2 on the Power Mac CD, but the Finder version is 7.1.4.  Try doing a
  11404. >Finder Get Info command on the Finder icon in your system folder.
  11405.  
  11406. That's exactyl what I did to get the finder version. Quite probably localization
  11407. and very annoying. I'm was hoping for a scriptable finder to get a ahead start
  11408.  on
  11409. developing an AppleScript to handle our Maciintosh Template installation.
  11410.  
  11411. Martyn Lesbirel
  11412. Computing Officer - Systems & Networks
  11413. Liverpool John Moores University
  11414. E-mail: M.R.Lesbirel@livjm.ac.uk    Tel:051 231-2310
  11415. =========================================================================
  11416. Date:         Thu, 18 Aug 1994 06:08:24 -0400
  11417. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11418. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11419. From:         Kiran Wagle <groo@NETCOM.COM>
  11420. Subject:      Re: creation of a MacScripting newsgroup
  11421.  
  11422. > is perhaps time to create a newsgroup and do our best to spread the word to
  11423. > the rest of the macintosh community.  Applescript is an underutilised
  11424. > resource.  With the immenant release of 7.5, everyone will end up with
  11425.  
  11426. I hadn't thought about this, and I agree.  AppleScript is something WE
  11427. have, and THEY don't have, and the more people who discover it and use it
  11428. and bug their application developers to add full AS support, the better off
  11429. we all are.
  11430.  
  11431. > Imagine c.s.m.programmer landing in your mailbox every day!
  11432.  
  11433. Yeah--no gateway.
  11434.  
  11435. ~ Kiran <groo@netcom.com>
  11436.  
  11437. --
  11438. 6216 41st Avenue Hyattsville MD 20782 301/779-0756 <groo@netcom.com>
  11439. =========================================================================
  11440. Date:         Thu, 18 Aug 1994 08:16:42 -0500
  11441. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11442. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11443. From:         David Boroditsky <sage!dave@NOC.TOR.HOOKUP.NET>
  11444. Organization: Sage Design
  11445. Subject:      Re: using Frontier & Excel
  11446.  
  11447. >1.) A script that launches Excel (from Frontier) and opens the log file.
  11448. >There's a Frontier verb that handles this very action--app.startWithDocument
  11449. (
  11450. >)--that takes the app's name and the document as arguments and returns true
  11451. or
  11452. >false based on its success. For some reason, I can make the verb work from a
  11453. >QuickScript window--app.startWithDocument ("Excel", bkupLog )-- but not in
  11454. the
  11455. >body of my script in the form:
  11456. >excel_ok = app.startWithDocument ("Excel", bkupLog )
  11457.  
  11458. Have you tried
  11459.   launch.anything(bkupLog)
  11460.  
  11461. This always seems to work for me, the behaviour (I am Canadian) is akin to a
  11462. Finder double-click. Even if the file was not created in Excel, you can
  11463. change the file creator to have the file cause Excel to launch.
  11464.  
  11465.  
  11466. +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
  11467. |       Everything is very very deeply      \
  11468. |    I  N  T  E  R  T  W  I  N  G  L  E  D   \
  11469. | dave@sage.uucp/sage!dave@noc.tor.hookup.net \
  11470. +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
  11471. =========================================================================
  11472. Date:         Thu, 18 Aug 1994 09:08:38 -0500
  11473. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11474. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11475. From:         David Boroditsky <sage!dave@NOC.TOR.HOOKUP.NET>
  11476. Organization: Sage Design
  11477. Subject:      Re: Pictures from QuarkXPress
  11478.  
  11479. >Does anyone know if someone can get a list pictures like they can get a font
  11480. >list. I don't see anything in the documentation about this. Any ideas?
  11481.  
  11482. In Frontier, something like this works like a charm and will return a list of
  11483. all the pictures in a document
  11484.  
  11485. with objectmodel,qxp,defs
  11486.   with document[1]
  11487.      foo = get(picturebox[all].image[1].filepath)
  11488.  
  11489. foo will be a list where each element is the full path if the image.
  11490. Note that picture boxes that have no image in them will have a filepath of
  11491. 'null'.
  11492. People often use picture boxes as design elements, so this can give you
  11493. headache.
  11494. Also, if you have lots of images or lots of pages, you may want to do the
  11495. 'get' on a page by page basis and then total the size of the lists.
  11496.  
  11497. To avoid you having to strain out boxes without pictures, you can use
  11498.  
  11499. with objectmodel,qxp,defs
  11500.   with document[1].picturebox[all].image[filepath * "null"]
  11501.       bar = get(filepath)
  11502.  
  11503. Frontier coerces "null" to "'null'" and * is not equals ( != )
  11504. This gets Quark to do the work of figuring out how many actual images there
  11505. are placed in your document.
  11506. +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
  11507. |       Everything is very very deeply      \
  11508. |    I  N  T  E  R  T  W  I  N  G  L  E  D   \
  11509. | dave@sage.uucp/sage!dave@noc.tor.hookup.net \
  11510. +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
  11511. =========================================================================
  11512. Date:         Thu, 18 Aug 1994 09:34:43 -0500
  11513. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11514. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11515. From:         David Boroditsky <sage!dave@NOC.TOR.HOOKUP.NET>
  11516. Organization: Sage Design
  11517. Subject:      Re: creation of a MacScripting newsgroup
  11518.  
  11519. >When Applescript first came out, it was so special interest that a
  11520. >newsgroup would not have been warranted.  With 800 people on the list, it
  11521. >is perhaps time to create a newsgroup and do our best to spread the word to
  11522. >the rest of the macintosh community.  Applescript is an underutilised
  11523. >resource.  With the immenant release of 7.5, everyone will end up with
  11524. >copies of Applescript on their computers (legally or illegally) within a
  11525. >year or so.  If creating a a newsgroup helps encourage and foster
  11526. >Applescript adoption by the masses, then it can only be good for us.  If
  11527. >you are going to make a newsgroup, I would suggest that it goes under
  11528. >programmer because that is what most of the traffic has been and there are
  11529. >unlikely to be too many applescript related non-programmer inquiries
  11530. >anyway.
  11531.  
  11532. Pardon me but I am in no way attempting to foster the use of AppleScript!
  11533. Excuse me, but it sucks. (Flame me later, but now I rant).
  11534.  
  11535. I thought this mailing list was concerned with *Macintosh scripting*.
  11536. Most of you may only use AppleScript, but some of us *never* use it.
  11537.  
  11538. BTW, the amount of traffic there is in this mailing list having to do with
  11539. people trying to do things that are already built into Frontier (and quite
  11540. reliably I might add) is astounding, but alas I rant again.
  11541.  
  11542. I just wanted to snip in the bud the automatic linking of Macintosh scripting
  11543. with AppleScript.
  11544.  
  11545. I too agree that scripting is under-utilized, but feel that an unmoderated
  11546. newsgroup would just create so much noise.
  11547.  
  11548. There, my rant is done (For now... ;)
  11549.  
  11550. David
  11551.  
  11552. +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
  11553. |       Everything is very very deeply      \
  11554. |    I  N  T  E  R  T  W  I  N  G  L  E  D   \
  11555. | dave@sage.uucp/sage!dave@noc.tor.hookup.net \
  11556. +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
  11557. =========================================================================
  11558. Date:         Thu, 18 Aug 1994 19:02:03 +0100
  11559. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11560. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11561. From:         Judith Kertisz SUCHARD <suchard@CNAM.FR>
  11562. Subject:      Re: creation of a MacScripting newsgroup
  11563.  
  11564. >Should I begin the process of creating a MacScripting newsgroup?
  11565. >
  11566. >_xx_ Yes
  11567. >
  11568. >____ No
  11569. >
  11570. >
  11571. >Should the mailing list be maintained and messages gatewayed to the newsgroup
  11572. >and vice versa.
  11573. >
  11574. >____ Yes
  11575. >
  11576. >_xx_ No
  11577.  
  11578. Chaleureusement,
  11579.  
  11580. Judith
  11581. _________________________________________
  11582. Judith Kertisz Suchard                  suchard@cnam.cnam.fr
  11583. C.N.A.M. Labo Informatique             AppleLink: cnam
  11584. 25, rue Mont Cenis                         Tel:(1) 40 27 25 57
  11585. 75018 Paris, France                     Fax: 40 27 27 72
  11586. _________________________________________
  11587. "La simpliciti, c'est le fruit d'un long effort"
  11588. =========================================================================
  11589. Date:         Thu, 18 Aug 1994 12:35:28 -0600
  11590. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11591. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11592. From:         Frank Concannon <frank-concannon@UOKHSC.EDU>
  11593. Subject:      Re: creation of a MacScripting newsgroup
  11594.  
  11595. >
  11596. >Pardon me but I am in no way attempting to foster the use of AppleScript!
  11597. >Excuse me, but it sucks. (Flame me later, but now I rant).
  11598. >
  11599.  
  11600.  
  11601. >
  11602. >David
  11603. >
  11604.  
  11605. Please expound upon your basic thesis.
  11606.  
  11607. Some examples of such suckingness would be good.
  11608. eg What exactly does it suck? and where does it suck it to?
  11609.  
  11610. Frank C.
  11611. R&E
  11612. =========================================================================
  11613. Date:         Thu, 18 Aug 1994 11:05:56 -0800
  11614. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11615. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11616. From:         "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
  11617. Subject:      FaceSpan -- Wait, Please
  11618.  
  11619. I must be missing this basic idea, but here's my problem.
  11620.  
  11621. I want to open a window and wait until a button is hit.
  11622. Then I want to open another window.
  11623.  
  11624. The first step stumps me -- how can I tell AS to open a window (well, 'open
  11625. window named "x" works :) ) and *then wait until one of the buttons is
  11626. hit*?
  11627.  
  11628. -roy
  11629.  
  11630. Roy S. Rapoport                                       rsr@berksys.com
  11631. 2095 Rose St                                    Berkeley   CA   94709
  11632. =========================================================================
  11633. Date:         Thu, 18 Aug 1994 14:30:26 -0400
  11634. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11635. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11636. From:         "Steven L. Rohall" <slrohall@TASC.COM>
  11637. Subject:      Re: FaceSpan -- Wait, Please
  11638.  
  11639. At 11:05 AM 8/18/94 -0800, you wrote:
  11640. >The first step stumps me -- how can I tell AS to open a window (well, 'open
  11641. >window named "x" works :) ) and *then wait until one of the buttons is
  11642. >hit*?
  11643. >
  11644. >-roy
  11645. >
  11646. >Roy S. Rapoport                                       rsr@berksys.com
  11647. >2095 Rose St                                    Berkeley   CA   94709
  11648.  
  11649. How about:
  11650.  
  11651. open window "Welcome" returning =AC
  11652.         {closing item:button}
  11653. if the name of button is "pshOK" then
  11654.         open window "Main" with properties =AC
  11655.                 {{position:centered in main}}
  11656. else
  11657.         quit
  11658. end if
  11659.  
  11660.                                 -Steve.
  11661. =========================================================================
  11662. Date:         Thu, 18 Aug 1994 12:05:31 PDT
  11663. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11664. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11665. From:         Eric Bowman <Eric.Bowman@DIRECTORY.REED.EDU>
  11666. Subject:      Scripting BlitzMail 2.0.1
  11667.  
  11668. Has anyone successfully scripted Blitzmail to do anything interesting like
  11669. sort mail?  I am a novice AppleScripter, and barely know where to begin, but
  11670. Blitzmail seemed like a reasonable thing to play with since, well, I have it.
  11671. :)
  11672.  
  11673. I would be very appreciative if anyone felt like sharing any of their
  11674. scripts, particularly for sorting mail into folders based on sender, subject,
  11675. and/or body content.
  11676.  
  11677. Thanks,
  11678. bobo
  11679. --
  11680. bobo@reed.edu
  11681. "Sure thing, giant beer!"
  11682. =========================================================================
  11683. Date:         Thu, 18 Aug 1994 15:26:53 -0400
  11684. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11685. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11686. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  11687. Subject:      Re: Scripting BlitzMail 2.0.1
  11688. In-Reply-To:  <no.id> from "Eric Bowman" at Aug 18, 94 12:05:31 pm
  11689.  
  11690. --Eric Bowman wrote:
  11691. >
  11692. >Has anyone successfully scripted Blitzmail to do anything interesting like
  11693. >sort mail?  I am a novice AppleScripter, and barely know where to begin, but
  11694. >Blitzmail seemed like a reasonable thing to play with since, well, I have it.
  11695. >:)
  11696.  
  11697.     I've probably spent more time scripting BlitzMail than just about
  11698. anyone else in this country. (Note: this isn't too tough since BlitzMail
  11699. is only used at Reed College and Dartmouth College, and I've been
  11700. scripting it since AppleScript support was put into the beta version of
  11701. 2.0)
  11702.  
  11703. >I would be very appreciative if anyone felt like sharing any of their
  11704. >scripts, particularly for sorting mail into folders based on sender, subject,
  11705. >and/or body content.
  11706.  
  11707.     Let me know what kinds of snags you are running into, and I'll see
  11708. what I can do to help you out. And private e-mail is probably the best
  11709. place for our discussion.
  11710.  
  11711. -Hades
  11712. =========================================================================
  11713. Date:         Thu, 18 Aug 1994 15:25:50 -0400
  11714. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11715. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11716. From:         anthony brown <ANBROWN@HUSC.BITNET>
  11717. Subject:      Re: FaceSpan -- Wait, Please
  11718. In-Reply-To:  <01HG22KPJQDE9VXUKI@NETOP8.HARVARD.EDU>
  11719.  
  11720. Well, something that I do that is kindof like a cheat is to make the
  11721. window modal, and then the whole program will wait until you tell theat
  11722. window to close.  Be sure to set the autoclose property of the window to
  11723. true that way as soon as you press the button, the window will close...
  11724.  
  11725. Anthony
  11726.  
  11727. *********************************************************************
  11728. *                                                                   *
  11729. *  Anthony Brown, Macintosh Programming Intern, Harvard Universtiy  *
  11730. *                                                                   *
  11731. *  "Classic Rock Music Stations,  The 70's are calling,             *
  11732. *   They want their 8 - Tracks back!"                               *
  11733. *                                                                   *
  11734. *   Dolphins Rule!!  Undefeated 17 - 0  The Perfect Team 1972-73    *
  11735. *                                                                   *
  11736. *********************************************************************
  11737. =========================================================================
  11738. Date:         Thu, 18 Aug 1994 15:42:05 -0400
  11739. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11740. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11741. From:         anthony brown <anbrown@HUSC9.HARVARD.EDU>
  11742. Subject:      keeping filemaker pro and scriptable text editor hidden in the
  11743.               back
  11744.  
  11745. Can anyone out there tell me how to keep Filemaker Pro and the scriptable
  11746. text editor in the background?
  11747.  
  11748. I use this:
  11749.  
  11750. tell application "finder"
  11751. set visible of process "filemaker pro" to false
  11752. end tell
  11753.  
  11754. to hide them, but everytime I use the tell application, it pops into the
  11755. foreground, and it is pretty annoying, and starts becoming very
  11756. inefficient when you have to call a handler to hide the thing everytime
  11757. you access something in the database...
  11758.  
  11759. does anyone know how to get it in the background and keep it there?
  11760. The same goes with the scriptable text editor.
  11761.  
  11762. Anthony
  11763.  
  11764. *********************************************************************
  11765. *                                                                   *
  11766. *  Anthony Brown, Macintosh Programming Intern, Harvard Universtiy  *
  11767. *                                                                   *
  11768. *  "Classic Rock Music Stations,  The 70's are calling,             *
  11769. *   They want their 8 - Tracks back!"                               *
  11770. *                                                                   *
  11771. *   Dolphins Rule!!  Undefeated 17 - 0  The Perfect Team 1972-73    *
  11772. *                                                                   *
  11773. *********************************************************************
  11774. =========================================================================
  11775. Date:         Thu, 18 Aug 1994 16:02:21 -0400
  11776. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11777. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11778. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  11779. Subject:      Re: keeping filemaker pro and scriptable text editor hidden in the
  11780. In-Reply-To:  <no.id> from "anthony brown" at Aug 18, 94 03:42:05 pm
  11781.  
  11782. --Anthony Brown wrote:
  11783. >
  11784. >Can anyone out there tell me how to keep Filemaker Pro and the scriptable
  11785. >text editor in the background?
  11786. >
  11787. >I use this:
  11788. >
  11789. >tell application "finder"
  11790. >set visible of process "filemaker pro" to false
  11791. >end tell
  11792. >
  11793. >to hide them, but everytime I use the tell application, it pops into the
  11794. >foreground, and it is pretty annoying, and starts becoming very
  11795. >inefficient when you have to call a handler to hide the thing everytime
  11796. >you access something in the database...
  11797.  
  11798.     Are you sure you don't have an activate command inside the tell
  11799. control statement when you try to work with FM Pro? If you do, this is
  11800. what's makeing it visible. I've done stuff with it in the background
  11801. before, so I know it can be done.
  11802.  
  11803. >does anyone know how to get it in the background and keep it there?
  11804. >The same goes with the scriptable text editor.
  11805.  
  11806.     I don't work with the Scriptable Text Editor (epsecially since it
  11807. doesn't actually work with files of type TEXT) so I can't really help
  11808. you with this one.
  11809.  
  11810. -Hades
  11811. =========================================================================
  11812. Date:         Thu, 18 Aug 1994 13:26:04 -0700
  11813. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11814. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11815. From:         Derrick Schneider <derrick@NETCOM.COM>
  11816. Subject:      Re: AppleScript sucking
  11817. In-Reply-To:  <199408181748.KAA12374@mail.netcom.com>
  11818.  
  11819. Whether or not AppleScript sucks, it's going to be on every single new
  11820. Macintosh when 7.5 ships. Whether you like it or not, most Mac scripters
  11821. are going to be using AS. Why pay money for Frontier when they get a
  11822. scripting system free? (that's a rhetorical question, BTW. I don't want
  11823. 80 zillion responses, as I know that Frontier offers a lot that AS doesn't)
  11824.  
  11825. But then again, I'm biased (and I hope that the bundled documentation for
  11826. AS is really bad...)   :)
  11827.  
  11828. Derrick
  11829. =========================================================================
  11830. Date:         Thu, 18 Aug 1994 13:54:20 -0800
  11831. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11832. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11833. From:         "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
  11834. Subject:      Re: AppleScript sucking
  11835.  
  11836. At 13:26 8/18/94 -0700, Derrick Schneider wrote:
  11837. >Whether or not AppleScript sucks, it's going to be on every single new
  11838. >Macintosh when 7.5 ships. Whether you like it or not, most Mac scripters
  11839. >are going to be using AS. Why pay money for Frontier when they get a
  11840. >scripting system free? (that's a rhetorical question, BTW. I don't want
  11841. >80 zillion responses, as I know that Frontier offers a lot that AS doesn't)
  11842.  
  11843. Well, I don't mean to denigrate frontier, since I have not much experience
  11844. with it, but at the risk of pissing off Frontier fans, here goes:
  11845.  
  11846. I've used Frontier.  I see AS as having the following advantages over Frontier:
  11847. A) Graphical interface (FaceSpan)
  11848. B) Ease of use and learning
  11849. C) Simplicity
  11850. D) context-sensitive formatting (different colors/styles for fonts of scripts)
  11851. E) Delocalization -- you don't have everything in one huge file (Oh, please
  11852.    don't get corrupted root of mine ... )
  11853. Now, obviously, I haven't used Frontier much. Actually, I haven't used it
  11854. *at all* for anything useful -- I'm in the vague browsing stage.  So what
  11855. does it have that AS 1.1 with FaceSpan doesn't?
  11856.  
  11857. -roy
  11858.  
  11859. Roy S. Rapoport                                       rsr@berksys.com
  11860. 2095 Rose St                                    Berkeley   CA   94709
  11861. =========================================================================
  11862. Date:         Thu, 18 Aug 1994 17:41:58 -0400
  11863. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11864. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11865. From:         anthony brown <anbrown@HUSC9.HARVARD.EDU>
  11866. Subject:      what is frontmost gazer for?
  11867.  
  11868. What is it for anyways?  I have seen no documentation in my scripters kit...
  11869. It's a file that just sits there and does nothing...  is it a debugger of
  11870. some sort?
  11871.  
  11872. Anthony
  11873.  
  11874. *********************************************************************
  11875. *                                                                   *
  11876. *  Anthony Brown, Macintosh Programming Intern, Harvard Universtiy  *
  11877. *                                                                   *
  11878. *  "Classic Rock Music Stations,  The 70's are calling,             *
  11879. *   They want their 8 - Tracks back!"                               *
  11880. *                                                                   *
  11881. *   Dolphins Rule!!  Undefeated 17 - 0  The Perfect Team 1972-73    *
  11882. *                                                                   *
  11883. *********************************************************************
  11884. =========================================================================
  11885. Date:         Thu, 18 Aug 1994 14:49:55 -0800
  11886. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11887. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11888. From:         Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU>
  11889. Subject:      Maximum length of script
  11890.  
  11891. I'm using the Script Editor to write a rather large script and it is giving me
  11892. a message that I have reached the maximum length of the script. Copying the
  11893. script to Word gives me a count of 30001 characters.
  11894.  
  11895. Is this a limitation of AppleScript or the Script Editor? If it is the Script
  11896. Editor, does ScriptWizard allow longer scripts and is there a limit to the
  11897. length of an AppleScript script.
  11898.  
  11899. Thanks,
  11900.  
  11901. Greg Francis
  11902. =========================================================================
  11903. Date:         Thu, 18 Aug 1994 17:58:17 -0400
  11904. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11905. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11906. From:         anthony brown <ANBROWN@HUSC.BITNET>
  11907. Subject:      Any debugger/code optimizers out there for applescript?
  11908.  
  11909. Subject Line says all.
  11910.  
  11911. Anthony
  11912.  
  11913. *********************************************************************
  11914. *                                                                   *
  11915. *  Anthony Brown, Macintosh Programming Intern, Harvard Universtiy  *
  11916. *                                                                   *
  11917. *  "Classic Rock Music Stations,  The 70's are calling,             *
  11918. *   They want their 8 - Tracks back!"                               *
  11919. *                                                                   *
  11920. *   Dolphins Rule!!  Undefeated 17 - 0  The Perfect Team 1972-73    *
  11921. *                                                                   *
  11922. *********************************************************************
  11923. =========================================================================
  11924. Date:         Fri, 19 Aug 1994 10:01:00 +1200
  11925. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11926. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11927. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  11928.               NZ" <LDO@WAIKATO.AC.NZ>
  11929. Subject:      Re: HyperTalk/AppleScript communication
  11930.  
  11931. Frank Lowney <flowney@LIBRIS.PUBLIC.LIB.GA.US> writes:
  11932.  
  11933. >on mouseUp
  11934. >        global response
  11935. >        tell application "HyperCard"
  11936. >                copy response to card field "testF"
  11937. >        end tell
  11938. >end mouseUp
  11939.  
  11940. Two things:
  11941.  
  11942. 1) HyperTalk and AppleScript are quite separate languages. In particular,
  11943. they can't share variables directly. However, HyperCard makes all its objects
  11944. accessible to AppleScript, you just have to use the right object class when
  11945. referring to them, eg "variable" for a HyperTalk variable. You should see all
  11946. the object types listed if you open HyperCard's dictionary in the AppleScript
  11947. Script Editor.
  11948.  
  11949. 2) The 'tell application "HyperCard"' bit is redundant. HyperCard is the
  11950. default target, since that's the application that's running the script.
  11951.  
  11952. Try this AppleScript script instead:
  11953.  
  11954.     on mouseUp
  11955.         copy variable "response" to card field "Test"
  11956.     end mouseUp
  11957.  
  11958. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  11959. Info & Tech Services Division              fax: +64-7-838-4066
  11960. University of Waikato            electric mail: ldo@waikato.ac.nz
  11961. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  11962. =========================================================================
  11963. Date:         Fri, 19 Aug 1994 10:07:00 +1200
  11964. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11965. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11966. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  11967.               NZ" <LDO@WAIKATO.AC.NZ>
  11968. Subject:      Re: Re> Eudora 1.4.3 auto-sorting?
  11969.  
  11970. Roy Roper <r-roper@UIUC.EDU> writes:
  11971.  
  11972. >There is an aoce listserv in operation from the University of Michigan.
  11973. >Some of these issues are also being discussed there.
  11974. >
  11975. > ------ From: Macintosh Scripting Systems, Wed, Aug 17, 1994 ------
  11976. >
  11977. >I need a way to automatically sort my different [Eudora] mailboxes by date.
  11978. >Is it possible to do this with AppleScript?
  11979.  
  11980. I don't see what Eudora has to do with AOCE. Until some connection becomes
  11981. obvious, please keep discussion of Eudora scripting in the MACSCRPT list, and
  11982. out of the AOCE one!
  11983.  
  11984. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  11985. Info & Tech Services Division              fax: +64-7-838-4066
  11986. University of Waikato            electric mail: ldo@waikato.ac.nz
  11987. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  11988. =========================================================================
  11989. Date:         Thu, 18 Aug 1994 15:28:54 -0800
  11990. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11991. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11992. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  11993. Subject:      Re: AppleScript sucking
  11994.  
  11995. I am sure that other Frontier users will pipe up, but here are my comments.
  11996. I will say that I use BOTH AS and Frontier for my scripting needs since
  11997. each has tools the other doesn't though I spend more time in Frontier.
  11998.  
  11999.  
  12000. >I've used Frontier.  I see AS as having the following advantages over Frontier:
  12001. >A) Graphical interface (FaceSpan)
  12002. >
  12003.         True, though FaceSpan works just fine in conjuction with Frontier
  12004. it simply isn't bundled.
  12005.  
  12006.  
  12007. >B) Ease of use and learning
  12008. >C) Simplicity
  12009. >
  12010.         That's relative.  I don't think that one could prove that AS is
  12011. easier than Frontier, or vice versa.
  12012.  
  12013.  
  12014. >D) context-sensitive formatting (different colors/styles for fonts of scripts)
  12015. >
  12016.         True.  HOWEVER, on the other hand Frontier's script editor is
  12017. outline based meaning that there is TEXT FOLDING which is GREAT for working
  12018. with large procedures!
  12019.  
  12020.  
  12021. >E) Delocalization -- you don't have everything in one huge file (Oh, please
  12022. >   don't get corrupted root of mine ... )
  12023. >
  12024.         It's a tradeoff.
  12025.  
  12026.         The centralization of data storage for Frontier (ie. the object
  12027. database) is one of its BEST features IMHO as it gives me a single DB for
  12028. storing all sorts of scripting related things (scripts, VIEWABLE persistant
  12029. store data, DOCUMENTATION (in full word processing or outline form), user
  12030. interface elements (dialogs, menus, etc.), etc.).  And being centralized
  12031. also means that not only are related elements grouped, BUT I can search the
  12032. DB to find things w/o worrying about where on my HD I put them!
  12033.  
  12034.  
  12035. >So what does it have that AS 1.1 with FaceSpan doesn't?
  12036. >
  12037.         Two other features of Frontier that I could not live w/o...
  12038.  
  12039. 1) MenuSharing.  This is a way for me to add my own menus to MS aware
  12040. applications (which is pretty much all scriptable applications) so that I
  12041. can put my own commands into their menubar.  It was the impetus for OSA
  12042. Menu, but it is MUCH more flexible and cool...
  12043.  
  12044. 2) Debugger!!  Just think of being able to single step through a script,
  12045. examining (and editing!) the values of variables as you went.   For me as
  12046. an application developer this is the BEST tool for writing AE support into
  12047. an application since it lets me see what is going on!
  12048.  
  12049.  
  12050. Leonard
  12051.  
  12052. -----------------------------------------------------------------------------
  12053. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  12054. Director of Advanced Technology         AppleLink:      MACgician
  12055. Aladdin Systems, Inc.                   GEnie:          MACgician
  12056. =========================================================================
  12057. Date:         Thu, 18 Aug 1994 17:06:07 -0700
  12058. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12059. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12060. From:         Derrick Schneider <derrick@NETCOM.COM>
  12061. Subject:      Re: AppleScript sucking
  12062. In-Reply-To:  <199408182230.PAA02573@mail2.netcom.com>
  12063.  
  12064. My use with Frontier was primarily with Frontier 1.0 when I did BMUG's
  12065. disk catalog. Leonard's right: debugging scripts and folding up
  12066. well-tested procedures (the disk catalog scripts were humungous (sp?))
  12067. was a godsend. Nowadays, I might choose to use AS just because I'm more
  12068. up on it then the new versions of Frontier, but I think both offer the
  12069. capability I'd need. In addition, we couldn't have lived without the
  12070. persistent storage (which, though possible in AS, is kind of a pain,
  12071. unless you've got ScriptBase) that the root offers.
  12072.  
  12073. Indeed, ease of learning is relative. I don't think programmers would
  12074. have any trouble with Frontier, but I think AS is more appealing to the
  12075. beginning scripter.
  12076.  
  12077. My humble opinion,
  12078.  
  12079. Derrick
  12080. =========================================================================
  12081. Date:         Thu, 18 Aug 1994 20:09:42 EDT
  12082. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12083. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12084. From:         JeffBB@AOL.COM
  12085. Subject:      Timer save
  12086.  
  12087. I have a stay-open timer script that runs certain other scripts on certain
  12088. days of the week at certain hours. The script file returns a value "Done0815"
  12089. that is a property variable (StocksDone) in the main timer, so it doesn't run
  12090. itself over and over.
  12091.    Problem is, if the Mac crashes and is restarted the same day, the
  12092. "Done0815" property value is erased and all of that day's routines up to that
  12093. minute are repeated.
  12094.    Question: Without quitting and reopening the alarm program, how can I get
  12095. the alarm program to save itself, thereby saving its "Done0815" value in that
  12096. particular property?
  12097.    I will be glad to share the alarm system script with anyone interested. It
  12098. has run withut pause for two weeks now on an unattended Mac ... producing
  12099. daily TV pages and stocks pages for two daily newspapers.
  12100. Jeff Beebe / Gannett
  12101. =========================================================================
  12102. Date:         Thu, 18 Aug 1994 17:10:33 -0700
  12103. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12104. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12105. From:         Derrick Schneider <derrick@NETCOM.COM>
  12106. Subject:      Re: what is frontmost gazer for?
  12107. In-Reply-To:  <199408182145.OAA26441@mail2.netcom.com>
  12108.  
  12109. Haven't used Frontmost at all (except in its very early incarnations.
  12110. special bonus prize for anyone who can give all the names its gone
  12111. through), but I would guess that this is to allow people without
  12112. Frontmost (the full thing) to view Frontmost applications.
  12113.  
  12114. Derrick
  12115. =========================================================================
  12116. Date:         Fri, 19 Aug 1994 12:12:00 +1200
  12117. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12118. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12119. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  12120.               NZ" <LDO@WAIKATO.AC.NZ>
  12121. Subject:      Re: creation of a MacScripting newsgroup
  12122.  
  12123. Craig Richmond <craig@ECEL.UWA.EDU.AU> writes:
  12124.  
  12125. >When Applescript first came out, it was so special interest that a
  12126. >newsgroup would not have been warranted.  With 800 people on the list, it
  12127. >is perhaps time to create a newsgroup and do our best to spread the word to
  12128. >the rest of the macintosh community.
  12129.  
  12130. My last message was sent to just 399 participants (and the number seems to be
  12131. slowly declining :-O), but I think it would make sense to set up a newsgroup
  12132. anyway. I believe it should be called something like comp.sys.mac.scripting.
  12133. I furthermore believe that it should subsume the existing
  12134. comp.sys.mac.hypercard group, since there will be a lot of overlap in their
  12135. subject area.
  12136.  
  12137. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  12138. Info & Tech Services Division              fax: +64-7-838-4066
  12139. University of Waikato            electric mail: ldo@waikato.ac.nz
  12140. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  12141. =========================================================================
  12142. Date:         Thu, 18 Aug 1994 17:16:20 -0700
  12143. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12144. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12145. From:         Derrick Schneider <derrick@NETCOM.COM>
  12146. Subject:      Re: Maximum length of script
  12147. In-Reply-To:  <199408182153.OAA27266@mail2.netcom.com>
  12148.  
  12149. On Thu, 18 Aug 1994, Greg Francis wrote:
  12150.  
  12151. > I'm using the Script Editor to write a rather large script and it is giving me
  12152. > a message that I have reached the maximum length of the script. Copying the
  12153. > script to Word gives me a count of 30001 characters.
  12154.  
  12155. Script Editor won't do more than 32K. The difference might be header
  12156. information.
  12157.  
  12158. Derrick
  12159. =========================================================================
  12160. Date:         Thu, 18 Aug 1994 17:35:46 -0800
  12161. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12162. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12163. From:         Matt Stevens <matt@TRIBE.TRIBE.COM>
  12164. Subject:      Controlling Control Panels
  12165.  
  12166. Has anyone had any success in controlling either the network control panel
  12167. and/or MacTCP?  Specifically, switching the connection method that's
  12168. currently selected to another (ie. LocalTalk to EtherTalk, etc.).
  12169. --
  12170. matt
  12171.  
  12172. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  12173. ::                                                                         ::
  12174. :: Matt Stevens                                      email: matt@tribe.com ::
  12175. :: Online Information Technician                     phone:   510.814.3980 ::
  12176. :: Tribe Computer Works                                fax:   510.814.3980 ::
  12177. :: <a href="http://www.tribe.com/HTML/thetribe/matt.html">Matt's Home!</a> ::
  12178. ::                                                                         ::
  12179. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  12180. =========================================================================
  12181. Date:         Fri, 19 Aug 1994 00:41:52 GMT
  12182. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12183. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12184. From:         Jay Hebert <jayh@LAISON.W8HD.ORG>
  12185. Organization: L'AISON - Beverly Hills, Michigan
  12186. Subject:      Re: AppleScript sucking
  12187.  
  12188. Leonard Rosenthal <leonardr@netcom.com> writes:
  12189.  
  12190.  
  12191. >I am sure that other Frontier users will pipe up, but here are my comments.
  12192. >I will say that I use BOTH AS and Frontier for my scripting needs since
  12193. >each has tools the other doesn't though I spend more time in Frontier.
  12194. >
  12195. >
  12196. >>I've used Frontier.  I see AS as having the following advantages over
  12197. Frontier:
  12198. >>A) Graphical interface (FaceSpan)
  12199. >>
  12200. >        True, though FaceSpan works just fine in conjuction with Frontier
  12201. >it simply isn't bundled.
  12202. >
  12203. Wow, I had thought you couldn't use frontier either.. But, now that I think
  12204. about it, I bet using Frontier with FaceSpam is about is fun/easy as
  12205. scripting Frontier from the AppleScript Script editor while it's still set to
  12206. "AppleScript" dialect... Am I right?
  12207.  
  12208. [snip - for the same reason I stopped reading c.s.*.advocacy groups]
  12209.  
  12210. >>So what does it have that AS 1.1 with FaceSpan doesn't?
  12211. >>
  12212. >        Two other features of Frontier that I could not live w/o...
  12213. >
  12214. >1) MenuSharing.  This is a way for me to add my own menus to MS aware
  12215. >applications (which is pretty much all scriptable applications) so that I
  12216. >can put my own commands into their menubar.  It was the impetus for OSA
  12217. >Menu, but it is MUCH more flexible and cool...
  12218. >
  12219. >2) Debugger!!  Just think of being able to single step through a script,
  12220. >examining (and editing!) the values of variables as you went.   For me as
  12221. >an application developer this is the BEST tool for writing AE support into
  12222. >an application since it lets me see what is going on!
  12223. >
  12224. Two questions:
  12225. First, are there any plans to extend OSAMenu to be more flexible (a la Menu
  12226. Sharing, as you say)?
  12227. Second, would the debugging gap close if I were to switch to a 3rd party
  12228. script editor? Without commercializing, can someone point me at one if this
  12229. is the case? =)
  12230.  
  12231. Regards, and to each his own ;-)
  12232. Jay Hebert
  12233. jayh@laison.w8hd.org
  12234.  
  12235.  
  12236. --
  12237.  
  12238. ==========================jayh@laison.w8hd.org=========================
  12239.   Metallica,||   When a man lies he murders / Some part of the world
  12240.    To Live  ||These are the pale deaths which / Men miscall their lives
  12241.      is     ||     All this I cannot bear / To witness any longer
  12242.    To Die   ||     Cannot the kingdom of salvation / Take me home
  12243. =======================================================================
  12244. 1)  These opinions are mine.-==- 2)  Sending me mail gives me
  12245. I'm too self-interested to  -==- permission to reproduce it in any form
  12246. speak for anyone else.      -==- unless otherwise explicitly stated.
  12247. =========================================================================
  12248. Date:         Thu, 18 Aug 1994 23:37:38 -0500
  12249. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12250. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12251. From:         "Clark R. Wilkins" <clarkw@SAM.NEOSOFT.COM>
  12252. Subject:      Re: Second edition of Tao book
  12253.  
  12254. Does anyone know if the second edition is a real re-write, or just a
  12255. repackaging with the new software? I have worked through the first eight
  12256. chapters of the first edition and found several bugs, structural errors,
  12257. and plain misconceptions that made me pretty disappointed in the text. It
  12258. seems to me that someone who did not have a pretty good grounding in basic
  12259. programming would be totally confused by the errata in the book. I have
  12260. mediocre skills which enabed me to circumvent the errors, but I did not
  12261. appreciate having to debug a book that cost me over $25.
  12262.  
  12263. Clark R. Wilkins <clarkw@sam.neosoft.com>
  12264. -My words are responsible for themselves-
  12265. =========================================================================
  12266. Date:         Thu, 18 Aug 1994 22:39:31 -0800
  12267. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12268. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12269. From:         Dan Wolfe <wolfeman@APPLE.COM>
  12270. Subject:      Re: Power Mac and Finder
  12271.  
  12272. >>It might be a localization matter.  However:  here, the System version is
  12273. >>7.1.2 on the Power Mac CD, but the Finder version is 7.1.4.  Try doing a
  12274. >>Finder Get Info command on the Finder icon in your system folder.
  12275. >
  12276. >That's exactyl what I did to get the finder version. Quite probably
  12277. >>localization and very annoying. I'm was hoping for a scriptable finder to get
  12278. >a >ahead start on developing an AppleScript to handle our Maciintosh Template
  12279. >>installation.
  12280.  
  12281. Confirmed to be a localization bug - annoying yes - but hard to find when
  12282. 200 people are camped out on your shoulder watching every move. :-)
  12283.  
  12284. Scriptable Finder is available only in System 7.5 or greater OR from APDA.
  12285. Finder Scripting Extension is STILL necessary in 7.5 for finder scripting.
  12286. :-(
  12287.  
  12288. - Dan
  12289.  
  12290. /========================================================================\
  12291. |  Dan Wolfe, Software Integration Engineer                              |
  12292. |  Custom Mac, AppleSoft Platforms                                       |
  12293. |  Apple Computer, Inc                     |  MS: 81-CM                  |
  12294. |  EMail: wolfeman@apple.com               |  20525 Mariani Avenue       |
  12295. |  FAX: 408/974-8866; TEL: 408/974-0830    |  Cupertino, CA 95014        |
  12296. |------------------------------------------------------------------------|
  12297. |  People don't run out of dreams, they just run out of time...          |
  12298. |------------------------------------------------------------------------|
  12299. |  Include# <Standard Disclaimer> : Speaking as myself here....          |
  12300. \========================================================================/
  12301. =========================================================================
  12302. Date:         Thu, 18 Aug 1994 22:57:23 -0700
  12303. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12304. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12305. From:         Jon Pugh <jonpugh@NETCOM.COM>
  12306. Subject:      Re: Maximum length of script
  12307.  
  12308. From: Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU>
  12309. >
  12310. >I'm using the Script Editor to write a rather large script and it is giving me
  12311. >a message that I have reached the maximum length of the script. Copying the
  12312. >script to Word gives me a count of 30001 characters.
  12313. >
  12314. >Is this a limitation of AppleScript or the Script Editor? If it is the Script
  12315. >Editor, does ScriptWizard allow longer scripts and is there a limit to the
  12316. >length of an AppleScript script.
  12317.  
  12318. I wrote an MPW tool called RunScript that doesn't work with AS 1.1.  It
  12319. proved to be some kind of weird MPW/AS/Component Manager mess that couldn't
  12320. be fixed, so I ditched the whole MPW tool idea and have rewritten it as
  12321. ScriptServer, the OSA script compiler/decompiler.  I'm preparing an alpha
  12322. release of this, but my wife keeps wanting me to come to bed instead of
  12323. staying up until 3 am, so it's taking some time.  One of my work
  12324. compatriots has also written some MPW stuff to do #includes in AppleScript
  12325. for library code, so I'll be including those scripts too.
  12326.  
  12327. You can thus use MPW to edit your arbitrarily large scripts and automate
  12328. your build process too, simply by calling ScriptServer with some MPW
  12329. scripts which use Ed Lai's SendAE tool.  It works well.
  12330.  
  12331. More will come as I get the time.
  12332.  
  12333. Jon
  12334. =========================================================================
  12335. Date:         Thu, 18 Aug 1994 23:02:16 -0700
  12336. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12337. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12338. From:         Kiran Wagle <groo@NETCOM.COM>
  12339. Subject:      Re: Power Mac and Finder
  12340. In-Reply-To:  <199408190541.WAA11174@mail2.netcom.com> from "Dan Wolfe" at Aug
  12341.               18, 94 10:39:31 pm
  12342.  
  12343. Dan Wolfe writes:
  12344.  
  12345. > Scriptable Finder is available only in System 7.5 or greater OR from APDA.
  12346. > Finder Scripting Extension is STILL necessary in 7.5 for finder scripting.
  12347.  
  12348. Or from any dealer or mail order house selling the AppleScript 1.1
  12349. package labelled "Includes Finder Scripting Software."  You get both
  12350. the book _Scripting the Finder_ and the Finder and Extension for about
  12351. $140.  The manuals alone cost $70 or so, so this isn't TOO bad if you
  12352. don't mind a copy of FaceSpan too. :-)
  12353.  
  12354. AND, this finder is drag-manager aware.  THAT is way cool.
  12355.  
  12356. ~ Kiran
  12357. =========================================================================
  12358. Date:         Fri, 19 Aug 1994 02:10:35 -0400
  12359. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12360. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12361. From:         anthony brown <ANBROWN@HUSC.BITNET>
  12362. Subject:      how to hardwire a password and then remove the code...
  12363.  
  12364. I am writing a database for someone, and now he is starting to flake out,
  12365. and I think that he may not pay me.  My question is this....
  12366.  
  12367. I would like to hardwire a password dialog asking for a password, using
  12368. applescript, because that is the language that I Am using in this.  The
  12369. tricky part is that once the password has been entered, I do not want
  12370. that to ever come up again...
  12371.  
  12372. How can I do that...
  12373.  
  12374. ex.
  12375.  
  12376. as soon as the program is run, the password must be entered. Once it has
  12377. been entered, it should never be asked again.
  12378.  
  12379. I want to do this so that I can give him his software so that I can give
  12380. him an incentive to pay me.  And until he pays me, I will give him the
  12381. password so that he can use it...
  12382.  
  12383. Unless anyone has any better ideas that I can use on this guy, would this
  12384. be the best option for me?
  12385.  
  12386. I am open to any suggestions...
  12387.  
  12388.  
  12389. I am thinking of using a scriptable text editor document with a password
  12390. of my choice in it.  If the file is not present, then ask for the word.
  12391. If the file is present, and the file contains the correct
  12392. password(hardwired into the program of course), ignore the password prompt...
  12393.  
  12394. Any help would be GREATLY appreciated...
  12395.  
  12396. Anthony
  12397.  
  12398. -- The Dolphins will win the Super Bowl this season!
  12399.  
  12400. -- "If never I held you, my feelings would never show...
  12401. --  It's time I started walking but
  12402. --  Theres so much you'll never know!!"
  12403. --  Paul Stanley circa 1976
  12404. =========================================================================
  12405. Date:         Fri, 19 Aug 1994 01:01:01 -0700
  12406. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12407. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12408. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  12409. Subject:      Re: Timer save
  12410.  
  12411. >I have a stay-open timer script that runs certain other scripts on certain
  12412. >days of the week at certain hours. The script file returns a value "Done0815"
  12413. >that is a property variable (StocksDone) in the main timer, so it doesn't run
  12414. >itself over and over.
  12415. >   Problem is, if the Mac crashes and is restarted the same day, the
  12416. >"Done0815" property value is erased and all of that day's routines up to that
  12417. >minute are repeated.
  12418. >   Question: Without quitting and reopening the alarm program, how can I get
  12419. >the alarm program to save itself, thereby saving its "Done0815" value in that
  12420. >particular property?
  12421.  
  12422. I'm not sure how to force the property to save.  However, that's not
  12423. actually the problem you're trying to solve, which is to save a small
  12424. amount of data.  A little bit of text written into a file (opened and
  12425. closed each time) could do that for you.
  12426.    --John
  12427.  
  12428. --
  12429. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  12430. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  12431. =========================================================================
  12432. Date:         Thu, 18 Aug 1994 22:31:37 -0800
  12433. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12434. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12435. From:         Chuck McKinnon <mckinnon@KAIWAN.COM>
  12436. Subject:      MacPGP scripts
  12437.  
  12438. Hi all,
  12439.         I've just finished my addition to the MacPGP <-> Eudora universe,
  12440. and would like to find some hardy souls to try and break it!
  12441.         I have a MacPGP.lib (24K) and an Encrypt the out basket script
  12442. (8K), Decrypt the in basket is not yet finished and not availible : (.
  12443.         But hey, it's a beta -- doesn't that mean it's supposed to be
  12444. incomplete! Now if it was version 1.0 and cost $300 it would have to be
  12445. incomplete -- I think there are FTC laws saying so!
  12446.  
  12447. -----BEGIN PLUG-----
  12448.         These scripts are the basis for a simple, non-intrusive interface
  12449. for Eudora 1.4.3 and MacPGP 2.6ui. Place aliai of In & Out Basket in your
  12450. menu utility, MacPGP.lib can go anywhere, (it asks where it is). The first
  12451. time they are ran, they will ask some setup questions, and store that info
  12452. for future uses.
  12453. -----END PLUG-----
  12454.         Drop me a line for more info & I'll send you the package.
  12455.  
  12456. Thanx,
  12457.  
  12458.  
  12459. Chuck
  12460.  
  12461. /*----------------------------------------------------------------------------*\
  12462. \     Chuck McKinnon       |       ANAHEIM, CA       |      CSU Fullerton      /
  12463. /                          |                         |                         \
  12464. \   mckinnon@kiawan.com    |     -- BE  HAPPY --     |          a|k|a          /
  12465. /   CI$      74260,1110    |                         |                         \
  12466. \                          |    The Mouse doesn't    |        Cal State        /
  12467. /   Give me the finger     |   like it when you're   |    Construction Zone    \
  12468. \   for PGP Public Key     |        not happy        |    ^^^^^^^^^^^^^^^^^    /
  12469. /                          |                         |                         \
  12470. \*----------------------------------------------------------------------------*/
  12471. =========================================================================
  12472. Date:         Fri, 19 Aug 1994 05:05:19 -0500
  12473. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12474. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12475. From:         Terry Thiel <tthiel@FIREFLY.PRAIRIENET.ORG>
  12476. Subject:      Re: creation of a MacScripting newsgroup
  12477. In-Reply-To:  <199408171623.AA18513@firefly.prairienet.org>
  12478.  
  12479. Yes there should be an Applescript newsgroup.  I don't care if the mailing
  12480. list is maintained.
  12481. -Terry
  12482. ###
  12483. =========================================================================
  12484. Date:         Fri, 19 Aug 1994 13:17:45 --100
  12485. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12486. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12487. From:         Stefania Castellani <Stefania.Castellani@XEROX.FR>
  12488. Subject:      Memory problems with a script
  12489.  
  12490. Hi everybody,
  12491.  
  12492. I am writing a script (in AS of course!)
  12493. It is an application rather large, but until now I had no memory problems,
  12494. NOW I have a problem:
  12495.  
  12496. when I check the syntax of the script, the Script Editor is giving to me the
  12497. message
  12498.  
  12499.         "Out of memory"
  12500.  
  12501. and the only thing I am able to do is to save the script as a text,
  12502. close the Script Editor, reopening it, and saving the script as an
  12503. application............ :-(   (Moreover it doesn't work all the times).
  12504.  
  12505. Probably there is something very easy to do that I am not able to
  12506. see at the moment... Is there anybody out there who can help me?
  12507.  
  12508. Thanks a lot :-)
  12509.  
  12510. Stefania
  12511. =========================================================================
  12512. Date:         Fri, 19 Aug 1994 09:38:19 -0400
  12513. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12514. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12515. From:         Kiran Wagle <groo@NETCOM.COM>
  12516. Subject:      text processing engines
  12517.  
  12518. I want to do some serious text processing--namely, scripts to do reference
  12519. threaded digestification of mailing list mail.  I'm considering BBEdit as
  12520. the engine, but I wondered if anyone had other suggestions?
  12521.  
  12522. (I assume that actually doing this *in the applet* would be a menory hog
  12523. and very slow.  Has anyone practical experience with just loading the text
  12524. into a string and working on that?  And how long is a string in AS anyway?
  12525. No, it's not in the manual!)
  12526.  
  12527. Since I might want to unparse mangled headers from certain pesky sites
  12528. (<grin>) I need soemthing pretty darn powerful.  Scriptable Text Editor
  12529. doesn't count.
  12530.  
  12531. ~ Kiran
  12532.  
  12533. --
  12534. 6216 41st Avenue Hyattsville MD 20782 301/779-0756 <groo@netcom.com>
  12535. =========================================================================
  12536. Date:         Fri, 19 Aug 1994 09:38:53 -0400
  12537. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12538. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12539. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  12540. Subject:      Re: creation of a MacScripting newsgroup
  12541. In-Reply-To:  <no.id> from "Lawrence D'Oliveiro, Waikato University, Hamilton,
  12542.               NZ" at Aug 19, 94 12:12:00 pm
  12543.  
  12544. --Lawrence D'Oliveiro wrote:
  12545. >
  12546. >My last message was sent to just 399 participants (and the number seems to be
  12547. >slowly declining :-O), but I think it would make sense to set up a newsgroup
  12548. >anyway. I believe it should be called something like comp.sys.mac.scripting.
  12549. >I furthermore believe that it should subsume the existing
  12550. >comp.sys.mac.hypercard group, since there will be a lot of overlap in their
  12551. >subject area.
  12552.  
  12553.     This was one of the reasons the csm.scripting group didn't get off
  12554. the ground the first time. No one seemed to want to go to the
  12555. csm.hypercard newsgroup and get their opinion on the move. We would not
  12556. only have to convince them to change the name of their group, but to
  12557. also allow for a more than doubling of the current traffic with
  12558. non-hypercard related posts.
  12559.  
  12560. -Hades
  12561. =========================================================================
  12562. Date:         Fri, 19 Aug 1994 09:41:32 -0400
  12563. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12564. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12565. From:         Kiran Wagle <groo@NETCOM.COM>
  12566. Subject:      Re: AppleScript sucking
  12567.  
  12568. At 5:54 PM 8/18/94, Roy S. Rapoport wrote:
  12569.  
  12570. > I've used Frontier.  I see AS as having the following advantages [...]
  12571. > D) context-sensitive formatting (different colors/styles for fonts of scripts)
  12572.  
  12573. If Frontier doesn't have this, it's missing something really useful--useful
  12574. to PEOPLE, not programmers.  <grin>  And it's gonna be people using
  12575. AppleScript.
  12576.  
  12577. I've caught several errors of "logic" by noticing that thigns I thought
  12578. were application variables were being formatted as my variables.  Makes
  12579. debugging the text a lot easier IMO.  Much nicer than the naming
  12580. conventions I still use to keep identifiers straight.
  12581.  
  12582. Now if only we had context-sensitive formatting in ALL written text....
  12583.  
  12584. ~ Kiran
  12585.  
  12586. --
  12587. 6216 41st Avenue Hyattsville MD 20782 301/779-0756 <groo@netcom.com>
  12588. =========================================================================
  12589. Date:         Fri, 19 Aug 1994 07:46:22 U
  12590. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12591. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12592. From:         Roy Roper <r-roper@UIUC.EDU>
  12593. Subject:      Re> Re: Re> Eudora 1.4.3 auto-sorting?
  12594.  
  12595. The note was about scripting in general, and not all scripting discussions
  12596. are being held in this forum.  Some may find other scripting discussions
  12597. helpful as well.
  12598.  
  12599. Thanks for your kind advice.
  12600.  
  12601.  ------ From: Macintosh Scripting Systems, Thu, Aug 18, 1994 ------
  12602.  
  12603. Roy Roper <r-roper@UIUC.EDU> writes:
  12604.  
  12605. >There is an aoce listserv in operation from the University of Michigan.
  12606. >Some of these issues are also being discussed there.
  12607. >
  12608. > ------ From: Macintosh Scripting Systems, Wed, Aug 17, 1994 ------
  12609. >
  12610. >I need a way to automatically sort my different [Eudora] mailboxes by date.
  12611. >Is it possible to do this with AppleScript?
  12612.  
  12613. I don't see what Eudora has to do with AOCE. Until some connection becomes
  12614. obvious, please keep discussion of Eudora scripting in the MACSCRPT list, and
  12615. out of the AOCE one!
  12616.  
  12617. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  12618. Info & Tech Services Division              fax: +64-7-838-4066
  12619. University of Waikato            electric mail: ldo@waikato.ac.nz
  12620. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  12621. =========================================================================
  12622. Date:         Fri, 19 Aug 1994 09:34:30 -0500
  12623. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12624. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12625. From:         Steve Bryan <sbryan@MAROON.TC.UMN.EDU>
  12626. Subject:      Re: Memory problems with a script
  12627.  
  12628. >
  12629. >when I check the syntax of the script, the Script Editor is giving to me the
  12630. >message
  12631. >
  12632. >        "Out of memory"
  12633. >
  12634.  
  12635. Script Editor is an application which tries to live within a memory
  12636. partition like all other applications. If you find that partition too small
  12637. then you need to make it larger. To do that select Sript Editor in the
  12638. Finder and choose Get Info from the File menu. At the bottom right of the
  12639. dialog that you'll probably see that 700K is the preferred size. Bump it up
  12640. to a larger number. To help you determine an appropriate partition size try
  12641. running Script Editor after opening the About This Macintosh item from the
  12642. Apple menu in the Finder. This will show you how much of its partition
  12643. Script Editor is using.
  12644.  
  12645. -------------------------------------------------------------
  12646. Steve Bryan                Internet: sbryan@maroon.tc.umn.edu
  12647. Sexton Software          CompuServe: 76545,527
  12648. Minneapolis, MN 55415           Fax: (612) 929-1799
  12649. =========================================================================
  12650. Date:         Fri, 19 Aug 1994 08:12:57 -0800
  12651. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12652. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12653. From:         "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
  12654. Subject:      Re: how to hardwire a password and then remove the code...
  12655.  
  12656. At  2:10 8/19/94 -0400, anthony brown wrote:
  12657.  
  12658. >I would like to hardwire a password dialog asking for a password, using
  12659. >applescript, because that is the language that I Am using in this.  The
  12660. >tricky part is that once the password has been entered, I do not want
  12661. >that to ever come up again...
  12662. >
  12663. >How can I do that...
  12664.  
  12665. In broad terms,
  12666.  
  12667. set PrefFile to "MyPref"
  12668. tell application "Finder"
  12669. if (exists (path to Preferences & PrefFile)) then
  12670.         go on ...
  12671. else
  12672.         ask for password
  12673. end if
  12674.  
  12675. >I am thinking of using a scriptable text editor document with a password
  12676. >of my choice in it.  If the file is not present, then ask for the word.
  12677. >If the file is present, and the file contains the correct
  12678. >password(hardwired into the program of course), ignore the password prompt...
  12679.  
  12680. While you certainly can do whatever you want, I would be more inclined to
  12681. go for an algorithm-based password, rather than a text-based password, if
  12682. only so some sort of binary editor can't be used to coax the phrase out.
  12683. Think about it this way:
  12684.  
  12685. set MyMagicNumber to 17
  12686. copy (get_password()) to MyPW
  12687. copy (atoi(MyPW)) to MyPWInt -- convert MyPW to an integer
  12688. if (MyPWInt mod MyMagicNumber) is 0 then
  12689.         -- This is right
  12690. else
  12691.         -- This is wrong
  12692. end if
  12693.  
  12694. This is nice because all you need to change the password is to change the
  12695. MyMagicNumber; using a prime number is probably a good thing;
  12696.  
  12697. I could be a little more sophisticated, but I'd be close to violating my NDA ...
  12698.  
  12699. -roy
  12700.  
  12701. Roy S. Rapoport                                       rsr@berksys.com
  12702. 2095 Rose St                                    Berkeley   CA   94709
  12703. =========================================================================
  12704. Date:         Fri, 19 Aug 1994 11:09:54 EDT
  12705. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12706. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12707. From:         Danny Goodman <DGoodman@AOL.COM>
  12708. Subject:      Re: Memory problems with a script
  12709.  
  12710. >when I check the syntax of the script, the Script Editor is giving to me the
  12711. message
  12712.  
  12713. Increase the memory partition of Script Editor.
  12714.  
  12715. Danny Goodman
  12716. =========================================================================
  12717. Date:         Fri, 19 Aug 1994 11:13:35 EDT
  12718. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12719. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12720. From:         Danny Goodman <DGoodman@AOL.COM>
  12721. Subject:      Re: Maximum length of script
  12722.  
  12723. >Copying the script to Word gives me a count of 30001 characters.
  12724. >
  12725. >Is this a limitation of AppleScript or the Script Editor?
  12726.  
  12727. This is a limitation of the Mac toolbox routines that the Script Editor uses
  12728. for its text fields.  The same 30,000 character limit afflicts HyperTalk
  12729. scripts in HyperCard and numerous other products (TeachText).  I don't recall
  12730. if ScriptWizard uses a different field methodology (for > 30,000 characters),
  12731. but the guys there will surely chime in here if appropriate.
  12732.  
  12733. Danny Goodman
  12734. =========================================================================
  12735. Date:         Fri, 19 Aug 1994 16:17:11 GMT
  12736. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12737. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12738. From:         Paul G Smith <paul@CTALK.EXNET.COM>
  12739. Organization: commstalk, & Full Moon Software Inc
  12740. Subject:      Re: ScriptWizard v. Script Editor
  12741.  
  12742. Hi Roy,
  12743.  
  12744. In Regards to your letter <"ScriptWizard v. Script Editor">:
  12745. >
  12746. > I've been playing around with a demo version of Script Wizard, trying to
  12747. > see if I liked it enough to push for a purchase.  It seems very cool,
  12748. > except for two problems:
  12749. >
  12750. > A) It's slow -- opening up two AS compiled scripts (saved as apps), with a
  12751. > total of 64K of code, took about 21 seconds longer than in Script Editor,
  12752. > for example.  SE took 26 seconds to start up and load both scripts in ; SW
  12753. > took about 47 seconds; you might want to knock off half a second for
  12754. > clicking the 'this is a demo' dialog box.  Similarly, saving and compiling
  12755. > times are also longer.  Anybody know if there's a fix for this?
  12756. >
  12757. > B) It's jerky -- when it's slow, it's not consistently slow.  It freezes
  12758. > for a second, then releases, etc.  It's not as smooth as SE...
  12759.  
  12760. There is a workaround for this in the shipping version, but first
  12761. a paragraph of explanation is due:
  12762.  
  12763. The problem is mostly down to the text editing engine used in ScriptWizard
  12764. (Word Solution Engine, from Datapak Software). WSE has many neat features
  12765. but it is not quite as speedy as we'd hoped when faced with text that has
  12766. lots and lots of style runs per line, like styled AppleScript text. WSE
  12767. also bogs down a bit more than it should in emulation mode on PowerMacs.
  12768. It depends on the Mac hardware you're running it on, but this is certainly
  12769. a complaint we've had from some of our users. Accordingly we are giving
  12770. these performance issues 110% attention in the next major release of SW;
  12771. the next version uses a different text editing engine that also allows SW
  12772. to run native on PowerMacs (was that an announcement....? hmmm).
  12773.  
  12774. We built a workaround into ScriptWizard 1.0, by the way: if you turn off
  12775. AppleScript Formatting (using the check box in the Formatting window) then
  12776. compilation and  text editing will be un-styled, but faster. This is
  12777. useful on older Macs, and may be easier than turning off ATM (another
  12778. cause of a slow-down, if ATM must build the fonts used for the styled
  12779. script display).
  12780.  
  12781. Hope this helps,
  12782.  
  12783.  
  12784. best regards, Paul
  12785.  
  12786. +------------------------------------------------------------------+
  12787. | Paul G Smith, Full Moon Software        ||  UK ph: +44 727 844232
  12788. | PO Box 116, ST ALBANS, Herts AL1 2RL UK ||    fax: +44 727 856139
  12789. | & Full Moon Software, Inc               ||  US ph: 408 253 7199
  12790. | P O Box 700237, SAN JOSE, CA 95170 USA  ||    fax: 408 252 2378
  12791. =========================================================================
  12792. Date:         Fri, 19 Aug 1994 08:19:08 -0800
  12793. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12794. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12795. From:         "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
  12796. Subject:      Re: Timer save
  12797.  
  12798. At 20:09 8/18/94 -0400, JeffBB@AOL.COM wrote:
  12799. >   Question: Without quitting and reopening the alarm program, how can I get
  12800. >the alarm program to save itself, thereby saving its "Done0815" value in that
  12801. >particular property?
  12802.  
  12803. Now that it's somewhat easy to get into files, why not use a preferences file?
  12804.  
  12805. -roy
  12806.  
  12807. Roy S. Rapoport                                       rsr@berksys.com
  12808. 2095 Rose St                                    Berkeley   CA   94709
  12809. =========================================================================
  12810. Date:         Fri, 19 Aug 1994 08:30:53 -0800
  12811. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12812. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12813. From:         "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
  12814. Subject:      Re: Maximum length of script
  12815.  
  12816. At 11:13 8/19/94 -0400, Danny Goodman wrote:
  12817. >This is a limitation of the Mac toolbox routines that the Script Editor uses
  12818. >for its text fields.  The same 30,000 character limit afflicts HyperTalk
  12819. >scripts in HyperCard and numerous other products (TeachText).  I don't recall
  12820. >if ScriptWizard uses a different field methodology (for > 30,000 characters),
  12821. >but the guys there will surely chime in here if appropriate.
  12822.  
  12823. I just opened a 67K file in ScriptWizard.  Actually, it opened rather
  12824. quickly, as text (which confirms Paul's earlier point).
  12825.  
  12826.  
  12827. Roy S. Rapoport                                       rsr@berksys.com
  12828. 2095 Rose St                                    Berkeley   CA   94709
  12829. =========================================================================
  12830. Date:         Fri, 19 Aug 1994 08:32:20 -0800
  12831. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12832. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12833. From:         "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
  12834. Subject:      Re: ScriptWizard v. Script Editor
  12835.  
  12836. At 16:17 8/19/94 +0000, Paul G Smith wrote:
  12837.  
  12838. >The problem is mostly down to the text editing engine used in ScriptWizard
  12839. >(Word Solution Engine, from Datapak Software). WSE has many neat features
  12840. >but it is not quite as speedy as we'd hoped when faced with text that has
  12841. >lots and lots of style runs per line, like styled AppleScript text. WSE
  12842. >also bogs down a bit more than it should in emulation mode on PowerMacs.
  12843. >It depends on the Mac hardware you're running it on, but this is certainly
  12844. >a complaint we've had from some of our users. Accordingly we are giving
  12845. >these performance issues 110% attention in the next major release of SW;
  12846. >the next version uses a different text editing engine that also allows SW
  12847. >to run native on PowerMacs (was that an announcement....? hmmm).
  12848. >
  12849. >We built a workaround into ScriptWizard 1.0, by the way: if you turn off
  12850. >AppleScript Formatting (using the check box in the Formatting window) then
  12851. >compilation and  text editing will be un-styled, but faster. This is
  12852. >useful on older Macs, and may be easier than turning off ATM (another
  12853. >cause of a slow-down, if ATM must build the fonts used for the styled
  12854. >script display).
  12855.  
  12856. The only problem is that I REALLY REALLY like the AppleScript formatting;
  12857. it's not something I'd trade off for speed.
  12858.  
  12859. Currently this seems to be pretty much the only serious flaw I've found
  12860. with ScriptWizard (aside from the fact it's a Mac product :) ).  When's the
  12861. next major release?
  12862.  
  12863. -roy
  12864.  
  12865. Roy S. Rapoport                                       rsr@berksys.com
  12866. 2095 Rose St                                    Berkeley   CA   94709
  12867. =========================================================================
  12868. Date:         Fri, 19 Aug 1994 08:33:33 -0800
  12869. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12870. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12871. From:         "Roy S. Rapoport" <rsr@WAFFLE.BERKSYS.COM>
  12872. Subject:      Re: FaceSpan -- Wait, Please
  12873.  
  12874. At 15:25 8/18/94 -0400, anthony brown wrote:
  12875. >Well, something that I do that is kindof like a cheat is to make the
  12876. >window modal, and then the whole program will wait until you tell theat
  12877. >window to close.  Be sure to set the autoclose property of the window to
  12878. >true that way as soon as you press the button, the window will close...
  12879.  
  12880. Yeah -- I forgot about window types (I've been a bad programmer -- I just
  12881. browsed through the book, rather than reading it), so I was setting it up
  12882. as a document window ...
  12883.  
  12884. -roy, who thinks FaceSpan is so cool, he might not be cool enough to use it
  12885.  
  12886.  
  12887. Roy S. Rapoport                                       rsr@berksys.com
  12888. 2095 Rose St                                    Berkeley   CA   94709
  12889. =========================================================================
  12890. Date:         Fri, 19 Aug 1994 11:00:12 -0500
  12891. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12892. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12893. From:         Fred Terry <pfterry@LKS.CSI.COM>
  12894. Subject:      Re: creation of a MacScripting newsgroup
  12895. In-Reply-To:  Your message of "Fri, 19 Aug 94 09:38:53 EDT"
  12896.  
  12897. >--Lawrence D'Oliveiro wrote:
  12898. >>
  12899. >>My last message was sent to just 399 participants (and the number seems to be
  12900. >>slowly declining :-O), but I think it would make sense to set up a newsgroup
  12901. >>anyway. I believe it should be called something like comp.sys.mac.scripting.
  12902. >>I furthermore believe that it should subsume the existing
  12903. >>comp.sys.mac.hypercard group, since there will be a lot of overlap in their
  12904. >>subject area.
  12905. >
  12906. >--Brian Hughes replied:
  12907. >
  12908. >    This was one of the reasons the csm.scripting group didn't get off
  12909. >the ground the first time. No one seemed to want to go to the
  12910. >csm.hypercard newsgroup and get their opinion on the move. We would not
  12911. >only have to convince them to change the name of their group, but to
  12912. >also allow for a more than doubling of the current traffic with
  12913. >non-hypercard related posts.
  12914.  
  12915. Odd, I thought we weren't going to talk about this yet. :-)
  12916.  
  12917. Let me just interject a dose of reality into this thread. Go read the messages
  12918. in the comp.sys.mac.programmer relating to their attempts to sub-divide and
  12919. name the smaller groups. Then read what the Usenet Newsgroup Creation
  12920. Companion has to say about efforts to change a group name/direction instead of
  12921. creating a new one. The simplest (perhaps, sanest?) way to do this--if we do
  12922. it at all--is to create a new group. An probably one that does not have
  12923. programming in it's name.
  12924.  
  12925. And Lawrence, where did you get that 399 number? A rev macscrpt just show 779
  12926. members (which is down from 780-something since the last time I checked). Or
  12927. did I misunderstand?
  12928.  
  12929. pf
  12930. =========================================================================
  12931. Date:         Fri, 19 Aug 1994 12:15:58 -0400
  12932. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12933. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12934. From:         "Andrew J. Kass" <delphi@MEDIA.MIT.EDU>
  12935. Subject:      How can I see events?
  12936.  
  12937. Is there an easy way to see what events are being passed and the replies?
  12938. The reason I need to know is that I am scanning in multiple pages using
  12939. scriptable scanning software. After scanning, I save each page. When I send
  12940. the save event, the software writes the file, then the script sits around for
  12941. about 20 seconds, spinning the cursor, apparantly doing nothing! I would like to
  12942. see exactly what/when the appleevents are being passed and the replies so I can
  12943. figure out what the delay is. Is this possible?
  12944.  
  12945. Thanks!
  12946.  
  12947. Andrew
  12948.  
  12949. Andrew Kass
  12950. Library 2000
  12951. MIT Lab for Computer Science
  12952. delphi@lcs.mit.edu
  12953. =========================================================================
  12954. Date:         Fri, 19 Aug 1994 12:17:26 -0400
  12955. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12956. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12957. From:         John Schettino <js12@GTE.COM>
  12958. Subject:      Wanted: CTB osax
  12959.  
  12960. This request may have been made before, but...
  12961.  
  12962. I'd really like to find an osax that would enable i/o via the CTB. Anyone
  12963. working on one of those?
  12964.  
  12965. This is for a potential shareware product that supports data transfer
  12966. between the Newton and mac/Applescript. I've got a good start on the newton
  12967. side, but really want to avoid learning all about the CTB.
  12968.  
  12969. There is additional functionality that I'm looking for as well (in the next
  12970. post)
  12971.  
  12972. - john
  12973.  
  12974. -----------------------------------------
  12975. js12@gte.com             GTE Laboratories
  12976. John Schettino                Waltham, MA
  12977. =========================================================================
  12978. Date:         Fri, 19 Aug 1994 12:19:15 -0400
  12979. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12980. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12981. From:         John Schettino <js12@GTE.COM>
  12982. Subject:      Any way to "compile" a string
  12983.  
  12984. This request may have been made before, but...
  12985.  
  12986. I've got a string
  12987.  
  12988. "{foo:\"a value\", bar:3, zed:{wow:1, blah:\"foo\"}}"
  12989.  
  12990. I'd like to call a fn and get back a real applescript record:
  12991.  
  12992. {foo:"a value", bar:3, zed:{wow:1, blah:"foo"}}
  12993.  
  12994. Any takers?
  12995.  
  12996. - john
  12997.  
  12998. -----------------------------------------
  12999. js12@gte.com             GTE Laboratories
  13000. John Schettino                Waltham, MA
  13001. =========================================================================
  13002. Date:         Fri, 19 Aug 1994 09:26:40 U
  13003. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13004. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13005. From:         Paul Farrah <paul_farrah1@QM.CLARIS.COM>
  13006. Subject:      Re: Any way to "compile" a s
  13007.  
  13008.         Reply to:   RE>Any way to "compile" a stri
  13009. To convert your "record string" to a record, try this:
  13010.  
  13011. run script "{foo:\"a value\", bar:3, zed:{wow:1, blah:\"foo\"}}"
  13012. -- returns the record {foo:"a value", bar:3, zed:{wow:1, blah:"foo"}}
  13013.  
  13014. This requires Apple's Run Script osax.
  13015.  
  13016. -Paul
  13017.  
  13018. --------------------------------------
  13019. From: John Schettino <js12@GTE.COM>
  13020. Subject:      Any way to "compile" a string
  13021. X-To:         Macintosh Scripting Systems
  13022.               <MACSCRPT%DARTCMS1.BITNET@uga.cc.uga.edu>
  13023. To: Multiple recipients of list MACSCRPT
  13024. <MACSCRPT%DARTCMS1.BITNET@uga.cc.uga.edu>
  13025.  
  13026. This request may have been made before, but...
  13027.  
  13028. I've got a string
  13029.  
  13030. "{foo:\"a value\", bar:3, zed:{wow:1, blah:\"foo\"}}"
  13031.  
  13032. I'd like to call a fn and get back a real applescript record:
  13033.  
  13034. {foo:"a value", bar:3, zed:{wow:1, blah:"foo"}}
  13035.  
  13036. Any takers?
  13037.  
  13038. - john
  13039.  
  13040. -----------------------------------------
  13041. js12@gte.com             GTE Laboratories
  13042. John Schettino                Waltham, MA
  13043. =========================================================================
  13044. Date:         Fri, 19 Aug 1994 09:47:04 -0800
  13045. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13046. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13047. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  13048. Subject:      Re: text processing engines
  13049.  
  13050. >I want to do some serious text processing--namely, scripts to do reference
  13051. >threaded digestification of mailing list mail.  I'm considering BBEdit as
  13052. >the engine, but I wondered if anyone had other suggestions?
  13053. >
  13054.         BBEdit will work just fine.  Also, Frontier has some wonderful
  13055. tools for doing text manipulation/munging that I used to write a complete
  13056. language parser for a particular project (I think a small version of it
  13057. even ships with our SITcomm install file ;).
  13058.  
  13059. Leonard
  13060.  
  13061. -----------------------------------------------------------------------------
  13062. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  13063. Director of Advanced Technology         AppleLink:      MACgician
  13064. Aladdin Systems, Inc.                   GEnie:          MACgician
  13065. =========================================================================
  13066. Date:         Fri, 19 Aug 1994 09:46:37 -0800
  13067. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13068. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13069. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  13070. Subject:      Re: AppleScript sucking
  13071.  
  13072. >>        Two other features of Frontier that I could not live w/o...
  13073. >>
  13074. >>1) MenuSharing.  This is a way for me to add my own menus to MS aware
  13075. >>applications (which is pretty much all scriptable applications) so that I
  13076. >>can put my own commands into their menubar.  It was the impetus for OSA
  13077. >>Menu, but it is MUCH more flexible and cool...
  13078. >>
  13079. >>2) Debugger!!  Just think of being able to single step through a script,
  13080. >>examining (and editing!) the values of variables as you went.   For me as
  13081. >>an application developer this is the BEST tool for writing AE support into
  13082. >>an application since it lets me see what is going on!
  13083. >>
  13084. >Two questions:
  13085. >First, are there any plans to extend OSAMenu to be more flexible (a la Menu
  13086. >Sharing, as you say)?
  13087. >
  13088.         Plans yes - time frame, no.  Right now I am VERY swamped with a
  13089. number of "real" projects (like the new StuffIt) and so OSA Menu doesn't
  13090. get any attention.  I hope to get back to it soon as there are a number of
  13091. interesting directions that I want to take it....
  13092.  
  13093.  
  13094. >Second, would the debugging gap close if I were to switch to a 3rd party
  13095. >script editor? Without commercializing, can someone point me at one if this
  13096. >is the case? =)
  13097. >
  13098.         It would close, but it can NOT approach Frontier in that UserTalk
  13099. (Frontier's language) was designed with debugging as a high priority while
  13100. AS was not.  As such, the 3rd party editors each use a "hack" to get
  13101. debugging and so things don't always work right that way.
  13102.  
  13103.  
  13104. LDR
  13105.  
  13106. -----------------------------------------------------------------------------
  13107. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  13108. Director of Advanced Technology         AppleLink:      MACgician
  13109. Aladdin Systems, Inc.                   GEnie:          MACgician
  13110. =========================================================================
  13111. Date:         Fri, 19 Aug 1994 09:55:54 -0700
  13112. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13113. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13114. From:         Derrick Schneider <derrick@NETCOM.COM>
  13115. Subject:      Re: Second edition of Tao book
  13116. In-Reply-To:  <199408190440.VAA11601@netcom11.netcom.com>
  13117.  
  13118. On Thu, 18 Aug 1994, Clark R. Wilkins wrote:
  13119.  
  13120. > Does anyone know if the second edition is a real re-write, or just a
  13121. > repackaging with the new software? I have worked through the first eight
  13122. > chapters of the first edition and found several bugs, structural errors,
  13123. > and plain misconceptions that made me pretty disappointed in the text. It
  13124.  
  13125. A lot of the text has been rewritten to handle some of the (ahem) errors
  13126. from version 1. Though the actual "exercises" are still the same,
  13127. they've been picked over. We actually had technical editors this time
  13128. (novel idea, n'est-ce pas?) who caught a lot of things. Plus I went
  13129. through and corrected as much as I could.
  13130.  
  13131. Sigh, can't please all the people all the time, I suppose.
  13132.  
  13133. Derrick
  13134. P.S. Order it direct from BMUG. That way it won't cost you as much!
  13135. =========================================================================
  13136. Date:         Fri, 19 Aug 1994 11:42:50 -0500
  13137. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13138. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13139. From:         Fred Terry <pfterry@LKS.CSI.COM>
  13140. Subject:      Re: How can I see events?
  13141. In-Reply-To:  Your message of "Fri, 19 Aug 94 12:15:58 EDT"
  13142.  
  13143. Andrew,
  13144.  
  13145. >Is there an easy way to see what events are being passed and the replies?
  13146. >The reason I need to know is that I am scanning in multiple pages using
  13147. >scriptable scanning software. After scanning, I save each page. When I send
  13148. >the save event, the software writes the file, then the script sits around for
  13149. >about 20 seconds, spinning the cursor, apparantly doing nothing! I would like
  13150. >to
  13151. >see exactly what/when the appleevents are being passed and the replies so I ca
  13152. >n
  13153. >figure out what the delay is. Is this possible?
  13154.  
  13155. You might want to check out AE Tracker. It creates a log file of all the Apple
  13156. events that are sent and received. You'll find it at
  13157.  
  13158. ftp://gaea.kgs.ukans.edu/applescript/addons/AETRACKER-3-0.HQX
  13159.  
  13160. Hope that helps.
  13161.  
  13162. pf
  13163. =========================================================================
  13164. Date:         Fri, 19 Aug 1994 13:24:06 -0500
  13165. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13166. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13167. From:         David Boroditsky <sage!dave@NOC.TOR.HOOKUP.NET>
  13168. Organization: Sage Design
  13169. Subject:      Re: AppleScript sucking
  13170.  
  13171. My initial comments were in response to someone's equating scripting in
  13172. general with AppleScript in particular. There are a lot more people doing
  13173. AppleScript than Frontier, and Frontier is more expensive.
  13174.  
  13175. I guess it comes down to what you want. If you want to go the inexpensive
  13176. route, not have much functionality built in, wrestle with dozens of scripting
  13177. additions and various incompatibilities, use AppleScript. Many of the
  13178. available OSAXen's features are already present, de-bugged and  documented in
  13179. Frontier. If you have to get something done quickly and efficiently, and you
  13180. want to spend your time thinking about the logic and flow of the script you
  13181. want to write, rather then figuring out how to get the scripting environment
  13182. to do what you want, use Frontier.
  13183.  
  13184. Many of the points mentioned by others regarding the advantages of AS over
  13185. Frontier have already been ably addressed by Leonard Rosenthol, but I have a
  13186. few comments as well...
  13187.  
  13188. As far as learning curve, Frontier includes an integrated scriptable document
  13189. server that contains documentation for the buitin verbs. The format of the
  13190. document pages provides for a description of the parameters, examples, notes,
  13191. what it does, related verbs and what is returned. It is an invaluable
  13192. consistent resource. There are scripts within Frontier to manage the document
  13193. server and build outlines of the documented verbs.
  13194.  
  13195. By pressing the control key while double clicking on the name of a verb, it
  13196. is automatically looked up for you. From the document server, you can copy to
  13197. the clipboard any of the different components of that verb's documentation.
  13198. Heck, you could whip up a script that created an outline of all parameters of
  13199. all the verbs having to do with dialogs.
  13200.  
  13201. Frontier comes with dozens of indexed and documented sample scripts to
  13202. demonstrate the syntax of the language and the use of verbs. Just unfold the
  13203. name of the verb and voila, the name of the sample scripts that use it. Hold
  13204. down the command key and double click on the name of the script and voila,
  13205. that script's window is opened.
  13206.  
  13207. There is also an outline form of the manual's index, but instead of
  13208. referencing the book, it references the object database.
  13209.  
  13210. Delocalization - Information can be stored at runtime in variables or can be
  13211. permanently stored in the object database, or they can be written out to a
  13212. file as text, or stored in the object database, that piece of database
  13213. exported to a file, and then deleted from the database, to be available again
  13214. just by opening it. Wow! What choices.
  13215.  
  13216. Frontier's debugger allows stepping, editing and the setting of break points.
  13217. The debugging info for each execution scope is stored in a different table,
  13218. making it easy to debug.
  13219.  
  13220. Frontier's scriptable integrated word processor has a ruler, 4 kinds of tabs,
  13221. left/right/centre/justified text, and find and replace.
  13222.  
  13223. Frontier's integrated scriptable outline processor is just so incredibly
  13224. useful for so many things that I don't know where to begin, so I won't.
  13225.  
  13226. Frontier has the ability to remove the source code from the tokenized code.
  13227. This can be quite useful if you are selling scripts, or don't want the
  13228. curious mucking about. I don't know if AppleScript can do this as well.
  13229.  
  13230. Frontier's object database allows for the customization of your programming
  13231. environment and the ability to easily manage and organize large amounts of
  13232. info.
  13233.     Want to create a new global constant? Just add it to the table that
  13234. contains all the global constants.
  13235.     Want a shared menu in to have different items on it depending on the time
  13236. of day or day of the week? Just add a script to the agents (cron-like
  13237. background running scripts) table that adds or deletes or re-writes the code
  13238. for the menubar for that app in the object database.
  13239.     Want to have computed values in a menubar? Just make the name of the item
  13240. the formula preceeded by =
  13241.  
  13242. I prefer UserTalk to Apple's scripting language. It is more terse and formal
  13243. looking, but I find that easier to program and easier to keep organized. I
  13244. tend to nest several calculations and procedure calls within one line, and
  13245. have one more than one occaison used up the 127 characters/line limit. It
  13246. seems that I can get more done with fewer keystrokes with Frontier.
  13247.  
  13248. The fact that AppleScript will be bundled with System 7.5 is a good idea.
  13249. With more people scripting (or running scripts) more apps will be scriptable
  13250. which is also good.
  13251.  
  13252. David
  13253.  
  13254. +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
  13255. |       Everything is very very deeply      \
  13256. |    I  N  T  E  R  T  W  I  N  G  L  E  D   \
  13257. | dave@sage.uucp/sage!dave@noc.tor.hookup.net \
  13258. +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
  13259. =========================================================================
  13260. Date:         Fri, 19 Aug 1994 13:24:54 -0400
  13261. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13262. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13263. From:         John Schettino <js12@GTE.COM>
  13264. Subject:      Re: Any way to "compile" a s
  13265.  
  13266. >        Reply to:   RE>Any way to "compile" a stri
  13267. >To convert your "record string" to a record, try this:
  13268. >
  13269. >run script "{foo:\"a value\", bar:3, zed:{wow:1, blah:\"foo\"}}"
  13270. >-- returns the record {foo:"a value", bar:3, zed:{wow:1, blah:"foo"}}
  13271. >
  13272. >This requires Apple's Run Script osax.
  13273. >
  13274.  
  13275. It only gives me an error... does this actually work for anyone?
  13276.  
  13277. If only that were true! I've got the lateste AppleScript (1.1) and Run
  13278. Script (1.1) osaxen, and it only accepts script files:
  13279.  
  13280. System Object Suite:
  13281. Copyright =AE 1993 Apple Computer, Inc. All rights reserved.
  13282.  
  13283. run script: Run a specified script or script file.
  13284.         run script  script  -- script or script file to execute
  13285.                 [with parameters  list]  -- list of parameters
  13286.                 [in  string]  -- scripting component to use, default is
  13287. current scripting component
  13288.         Result:   anything  -- result of running script
  13289.  
  13290. Am I missing something? Getinfo on run script says:
  13291. Run Script
  13292. AppleScript (tm) 1.1
  13293. Created/Modified Wed, Dec 8, 1993
  13294.  
  13295. - john
  13296.  
  13297. -----------------------------------------
  13298. js12@gte.com             GTE Laboratories
  13299. John Schettino                Waltham, MA
  13300. =========================================================================
  13301. Date:         Fri, 19 Aug 1994 10:35:29 -0800
  13302. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13303. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13304. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  13305. Subject:      Re: Wanted: CTB osax
  13306.  
  13307. >I'd really like to find an osax that would enable i/o via the CTB. Anyone
  13308. >working on one of those?
  13309. >
  13310.         There are no OSAXen for the CTB, since most people who want to
  13311. script communications are doing so with scriptable comm programs such as
  13312. SITcomm.  If you MUST use externals instead of an application, you might
  13313. want to look into the XCMDRunner OSAX along with the old CTB XCMD's.
  13314.  
  13315.  
  13316. Leonard
  13317.  
  13318. -----------------------------------------------------------------------------
  13319. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  13320. Director of Advanced Technology         AppleLink:      MACgician
  13321. Aladdin Systems, Inc.                   GEnie:          MACgician
  13322. =========================================================================
  13323. Date:         Fri, 19 Aug 1994 10:37:47 -0700
  13324. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13325. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13326. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  13327. Subject:      Re: How can I see events?
  13328.  
  13329. "Andrew J. Kass" writes
  13330.  
  13331. >Is there an easy way to see what events are being passed and the replies?
  13332. >The reason I need to know is that I am scanning in multiple pages using
  13333. >scriptable scanning software. After scanning, I save each page. When I send
  13334. >the save event, the software writes the file, then the script sits around for
  13335. >about 20 seconds, spinning the cursor, apparantly doing nothing! I would like
  13336. >>to
  13337. >see exactly what/when the appleevents are being passed and the replies so I can
  13338. >figure out what the delay is. Is this possible?
  13339.  
  13340. If you have access to Apple's Developer CD series, check out Chris Huan's
  13341. AETracker:
  13342.  
  13343. Dev.CD Aug 94:Tool Chest:OS/Toolbox:Apple Events:AE Tools:AETracker 3.0:
  13344.  
  13345. This is shareware (but *don't* pay the $5.00...Chris doesn't want the money
  13346. and no longer cashes the checks).
  13347.  
  13348. If you don't have the developer CDs, you could look around ftp.apple.com.
  13349.  
  13350. Or...I can mail you a copy (but I can't post to gaea).
  13351.  
  13352. This is a Control Panel with an INIT.  When activated, it writes a log file
  13353. of AE Manager calls.  You have lots of control over what it logs, from
  13354. "every d**n thing" in all processes down to a particular call in a single
  13355. process.
  13356.  
  13357. -----------------
  13358. Fred:  I don't actually know that this thing couldn't go on gaea...it is
  13359. Chris' shareware, and I forget whether an Apple copyright appears on it or
  13360. not.  One could always ask Chris.
  13361.  
  13362.    --John
  13363.  
  13364. --
  13365. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  13366. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  13367. =========================================================================
  13368. Date:         Fri, 19 Aug 1994 10:47:24 -0700
  13369. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13370. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13371. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  13372. Subject:      Re: Any way to "compile" a s
  13373.  
  13374. >>        Reply to:   RE>Any way to "compile" a stri
  13375. >>To convert your "record string" to a record, try this:
  13376. >>
  13377. >>run script "{foo:\"a value\", bar:3, zed:{wow:1, blah:\"foo\"}}"
  13378. >>-- returns the record {foo:"a value", bar:3, zed:{wow:1, blah:"foo"}}
  13379. >>
  13380. >>This requires Apple's Run Script osax.
  13381. >>
  13382. >
  13383. >It only gives me an error... does this actually work for anyone?
  13384. >
  13385. >If only that were true! I've got the lateste AppleScript (1.1) and Run
  13386. >Script (1.1) osaxen, and it only accepts script files:
  13387. >
  13388. >System Object Suite:
  13389. >Copyright =AE 1993 Apple Computer, Inc. All rights reserved.
  13390. >
  13391. >run script: Run a specified script or script file.
  13392. >        run script  script  -- script or script file to execute
  13393. >                [with parameters  list]  -- list of parameters
  13394. >                [in  string]  -- scripting component to use, default is
  13395. >current scripting component
  13396. >        Result:   anything  -- result of running script
  13397. >
  13398. >Am I missing something? Getinfo on run script says:
  13399.  
  13400. "script or script file" means just that:  a script (as text) or a script
  13401. file (in Apple's definition thereof).
  13402.  
  13403. Here's a working example:
  13404.  
  13405.     run script "display dialog \"Here I am\""
  13406.  
  13407.  
  13408. ----------
  13409. However, I have Run Script 1.1.1b1 (April 1994).  Someone else will have to
  13410. remember where I got that update ;-)
  13411.  
  13412.    --John
  13413.  
  13414. --
  13415. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  13416. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  13417. =========================================================================
  13418. Date:         Fri, 19 Aug 1994 14:04:27 -0400
  13419. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13420. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13421. From:         John Schettino <js12@GTE.COM>
  13422. Subject:      Re: Any way to "compile" a s
  13423.  
  13424. >However, I have Run Script 1.1.1b1 (April 1994).  Someone else will have to
  13425. >remember where I got that update ;-)
  13426.  
  13427. Ah HA! That must be it... I bought the scripter's toolkit recently, and got
  13428. the "old" 1.1. I wonder where y'all find the newer ones. I'll go netfishing
  13429. and see what I can find.
  13430.  
  13431. - john
  13432.  
  13433. -----------------------------------------
  13434. js12@gte.com             GTE Laboratories
  13435. John Schettino                Waltham, MA
  13436. =========================================================================
  13437. Date:         Fri, 19 Aug 1994 12:55:06 -0700
  13438. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13439. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13440. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  13441. Subject:      Re: AppleScript sucking
  13442.  
  13443. At 13:24 8/19/94 -0500, David Boroditsky wrote:
  13444. >Frontier has the ability to remove the source code from the tokenized code.
  13445. >This can be quite useful if you are selling scripts, or don't want the
  13446. >curious mucking about. I don't know if AppleScript can do this as well.
  13447.  
  13448. Yes...AppleScript does provide this capability.  Actually, once an
  13449. AppleScript script is compiled and the window is closed, the source is
  13450. gone.  The script is decompiled later when the source is needed again.  But
  13451. the underlying software provides a flag that says "don't allow decompiling
  13452. to source", and the Script Editor provides a way of setting that flag when
  13453. saving a script.
  13454.  
  13455. [And both Frontier and the AppleScript Script Editor allow the script
  13456. writer to discard the only available copy of the source, which isn't a good
  13457. thing for a script writer to do.]
  13458.  
  13459. Thanks for the kind words!
  13460.  
  13461. --John
  13462.  
  13463. --John W. Baxter    Port Ludlow, WA USA   jwbaxter@pt.olympus.net
  13464.   UserLand Software support
  13465. =========================================================================
  13466. Date:         Fri, 19 Aug 1994 14:29:43 -0600
  13467. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13468. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13469. From:         "Andy Cemelli [remote]" <ANDYC@WORDPERFECT.COM>
  13470. Subject:      Re: creation of a MacScripting newsgroup -Reply
  13471.  
  13472. What are the advantages and disadv of a newsgroup as opposed to
  13473. mailing list?
  13474.  
  13475. Andy
  13476. =========================================================================
  13477. Date:         Fri, 19 Aug 1994 16:25:30 -0500
  13478. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13479. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13480. From:         "Mobilio, Dominick" <MOBILD@PRINCE.MM.WYETH.COM>
  13481. Subject:      Re: AppleScript/Frontier
  13482.  
  13483. From: Mobilio, Dominick
  13484. Date: Fri, Aug 19, 1994 4:25 PM
  13485. Subject: Re: AppleScript/Frontier
  13486. To: MacScripting
  13487. From: Mobilio, Dominick on Fri, Aug 19, 1994 2:03 PM
  13488. Subject: Re: AppleScript/Frontier
  13489. To: MacScripting
  13490.  
  13491. >From:    David Boroditsky <sage!dave@NOC.TOR.HOOKUP.NET>
  13492. >Subject: Re: creation of a MacScripting newsgroup
  13493.  
  13494.  
  13495. >BTW, the amount of traffic there is in this mailing list having to do
  13496. >with people trying to do things that are already built into Frontier
  13497. > (and quite reliably I might add) is astounding, but alas I rant again.
  13498.  
  13499.  
  13500. It is amazing that you can grasp the art of scripting but are astounded as to
  13501. why people would be using AppleScript to do things that Frontier does.
  13502. Considering your sophomoric characterization of AppleScript, perhaps I
  13503. shouldn't be surprised.  What IS astounding is that someone can't understand
  13504. why people would use something that comes free with an operating system rather
  13505. than something they need to purchase separately.
  13506. =========================================================================
  13507. Date:         Fri, 19 Aug 1994 15:41:29 -0500
  13508. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13509. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13510. From:         Fred Terry <pfterry@LKS.CSI.COM>
  13511. Subject:      Re: creation of a MacScripting newsgroup -Reply
  13512. In-Reply-To:  Your message of "Fri, 19 Aug 94 14:29:43 MDT"
  13513.  
  13514. Andy asks....
  13515. >What are the advantages and disadv of a newsgroup as opposed to
  13516. >mailing list?
  13517.  
  13518. The mailing list is
  13519.         small and cozy--most everyone posts questions and answers
  13520.         easy to create/maintain/moderate
  13521.         easy to keep up with--it comes right to your mailbox
  13522.         digestable
  13523.         less given to flame wars
  13524.         lower traffic/less irrelevant noise
  13525. But it is also
  13526.         hard to find
  13527.         hard on people that don't like/can't afford lots of mail traffic
  13528.  
  13529. A newsgroup is
  13530.         more widely available
  13531.         easier on the mailbox
  13532. But it is also
  13533.         more prone to flame wars
  13534.         more likely to have lots of noise
  13535.         {may be} harder to digest
  13536.         harder to create
  13537.         a little more work--you have to have an account you can read news from
  13538.  
  13539. I'm sure others can contribute to this list or put a different spin on the
  13540. items I've listed (like the majority of humans--I'm biased). I think the
  13541. primary rationale for making the change is that System 7.5
  13542. will--theoretically--put AppleScript on more Macs. By converting the list to a
  13543. newsgroup now, we increase the ease that people can find scripting
  13544. information. And as the number of postings increase, we ease the burden on our
  13545. mailboxes.
  13546.  
  13547. Unfortunately, there is the potential for more irrelevant postings, more
  13548. flammage, and more religious wars (oops, we're experiencing some of that right
  13549. now, aren't we?). Some people have told me they think the quality of help will
  13550. decrease; I'm not sure I believe that. I only know that it'll be harder to
  13551. keep up with something that doesn't automatically land in my mailbox.
  13552.  
  13553. pf
  13554. =========================================================================
  13555. Date:         Fri, 19 Aug 1994 15:52:12 -0500
  13556. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13557. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13558. From:         Fred Terry <pfterry@LKS.CSI.COM>
  13559. Subject:      current poll count
  13560.  
  13561. In case you are interested, with less than 100 polls returned, this is the way
  13562. the polling stands.
  13563.  
  13564.  
  13565. Create a newsgroup?
  13566.   60 yes
  13567.   28 no
  13568.    4 don't care
  13569.  
  13570. Retain the mailing list with gateways?
  13571.   63 yes
  13572.   21 no
  13573.    6 don't care
  13574.  
  13575.  
  13576. I've had to toss out some of the "ballots" since they didn't have a clear-cut
  13577. yea or nay on both of the questions. If you haven't sent in a poll and you
  13578. plan to, please don't modify it. Just answer yes or no and then add a comment
  13579. if you like.
  13580.  
  13581. Thanks to everyone who has participated.
  13582.  
  13583. pf
  13584. =========================================================================
  13585. Date:         Fri, 19 Aug 1994 14:10:05 -0800
  13586. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13587. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13588. From:         "Roy S. Rapoport" <rsr@BERKSYS.COM>
  13589. Subject:      Re: current poll count
  13590.  
  13591. Sorry, I don't have the poll form:
  13592.  
  13593. Create a newsgroup?
  13594. NO
  13595.  
  13596. Retain the mailing list with gateways?
  13597. [If we create a newsgroup?] Yes
  13598. =========================================================================
  13599. Date:         Fri, 19 Aug 1994 18:41:49 -0400
  13600. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13601. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13602. From:         Kiran Wagle <groo@NETCOM.COM>
  13603. Subject:      Re: creation of a MacScripting newsgroup -Reply
  13604.  
  13605. At 4:41 PM 8/19/94, Fred Terry wrote:
  13606.  
  13607. > By converting the list to a newsgroup now,
  13608.  
  13609. Why not have BOTH?
  13610.  
  13611. I just don't get it I guess.
  13612.  
  13613. --
  13614. 6216 41st Avenue Hyattsville MD 20782 301/779-0756 <groo@netcom.com>
  13615. =========================================================================
  13616. Date:         Fri, 19 Aug 1994 18:46:16 -0800
  13617. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13618. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13619. From:         Will Parker <willhoek@HALCYON.COM>
  13620. Subject:      Re: creation of a MacScripting newsgroup
  13621.  
  13622. >
  13623. >
  13624. >Should I begin the process of creating a MacScripting newsgroup?
  13625. >
  13626. >__X_ Yes
  13627. >
  13628. >____ No
  13629. >
  13630. >
  13631. >Should the mailing list be maintained and messages gatewayed to the newsgroup
  13632. >and vice versa.
  13633. >
  13634. >__X_ Yes
  13635. >
  13636. >____ No
  13637.  
  13638. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  13639.      Third rule of Tech Support - If you can't navigate a
  13640.      five-item, single level phone tree without becoming
  13641.      frustrated, you didn't need that computer anyway.
  13642.                         -Willhoek@halcyon.com-
  13643. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  13644. =========================================================================
  13645. Date:         Fri, 19 Aug 1994 20:13:58 -0600
  13646. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13647. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13648. From:         Jason Lachowsky <Jason_Lachowsky%tcm.mn.org@HARVUNXW.BITNET>
  13649. Subject:      Re(2): AppleScript as a network software installer/updater system
  13650.  
  13651. I will reply to your message when I am back online.
  13652. Thanks!
  13653. -Jason Lachowsky
  13654. =========================================================================
  13655. Date:         Fri, 19 Aug 1994 20:43:30 -0800
  13656. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13657. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13658. From:         Dan Wolfe <wolfeman@APPLE.COM>
  13659. Subject:      Re: Power Mac and Finder
  13660.  
  13661. Dan Wolfe writes:
  13662.  
  13663. > Scriptable Finder is available only in System 7.5 or greater OR from APDA.
  13664. > Finder Scripting Extension is STILL necessary in 7.5 for finder scripting.
  13665.  
  13666. accck!  In the clear light of day... make that starlight.... I realize that
  13667. I need to clarify this comment.
  13668.  
  13669. Finder Scripting Extension is included with System 7.5.  You do not need to
  13670. purchase it seperately. What I was trying to point out was that it hasn't
  13671. been rolled into the Finder - yet. :-)
  13672.  
  13673. (Yep that's right, we engineers dream a lot....)
  13674.  
  13675. - Dan
  13676.  
  13677. /========================================================================\
  13678. |  Dan Wolfe, Software Integration Engineer                              |
  13679. |  Custom Mac, AppleSoft Platforms                                       |
  13680. |  Apple Computer, Inc                     |  MS: 81-CM                  |
  13681. |  EMail: wolfeman@apple.com               |  20525 Mariani Avenue       |
  13682. |  FAX: 408/974-8866; TEL: 408/974-0830    |  Cupertino, CA 95014        |
  13683. |------------------------------------------------------------------------|
  13684. |  People don't run out of dreams, they just run out of time...          |
  13685. |------------------------------------------------------------------------|
  13686. |  Include# <Standard Disclaimer> : Speaking as myself here....          |
  13687. \========================================================================/
  13688. =========================================================================
  13689. Date:         Sat, 20 Aug 1994 00:55:37 -0500
  13690. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13691. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13692. From:         "Eric W. Bates" <ericx@WIZARDZ.COM>
  13693. Subject:      Re: Controlling Control Panels
  13694.  
  13695. >Date:    Thu, 18 Aug 1994 17:35:46 -0800
  13696. >From:    Matt Stevens <matt@TRIBE.TRIBE.COM>
  13697. >Subject: Controlling Control Panels
  13698. >
  13699. >Has anyone had any success in controlling either the network control panel
  13700. >and/or MacTCP?  Specifically, switching the connection method that's
  13701. >currently selected to another (ie. LocalTalk to EtherTalk, etc.).
  13702. >--
  13703. >matt
  13704. >
  13705. I haven't tried either of those cdevs, but I have used QuickKeys to run
  13706. quite a few cdevs including ARA.
  13707.  
  13708.  
  13709. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  13710. ericx@wizardz.com                                            Eric W. Bates
  13711.                                                                     Box 55
  13712.                                                         Vineyard Haven, MA
  13713. "Holy Mush, Batman!"  -Robin, the Boy Wonder                    02568-0055
  13714. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  13715. =========================================================================
  13716. Date:         Sat, 20 Aug 1994 00:25:08 -0700
  13717. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13718. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13719. From:         Jon Pugh <jonpugh@NETCOM.COM>
  13720. Subject:      Re: AETracker
  13721.  
  13722. >Fred:  I don't actually know that this thing couldn't go on gaea...it is
  13723. >Chris' shareware, and I forget whether an Apple copyright appears on it or
  13724. >not.  One could always ask Chris.
  13725.  
  13726. I know CK.  I think it's safe to say that he doesn't give a damn about
  13727. whether or not you put it on gaea.  ;)
  13728.  
  13729. As for watching all the events, The Script Editor in 1.1 provides an
  13730. AETracker for events that scripts send.  Type Command-E.
  13731.  
  13732. Jon
  13733. =========================================================================
  13734. Date:         Sat, 20 Aug 1994 00:25:11 -0700
  13735. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13736. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13737. From:         Jon Pugh <jonpugh@NETCOM.COM>
  13738. Subject:      Re: AppleScript sucking
  13739.  
  13740. I don't want to be part of a religious flame war, but I've never been one
  13741. to keep my mouth shut and I'd hate to miss out on one that was happening
  13742. without me.  ;)
  13743.  
  13744. Everyone probably knows my preference, but I think my favorite statement
  13745. about Frontier is that if you liked THINKTANK and MORE, you'll love
  13746. =46rontier.  While I recognize the power of all of these products, there's
  13747. something about outliners and tables and windows galore that turns me off.
  13748. I also like english syntax as in AppleScript and HyperTalk.  After 15 years
  13749. of programming and 10 years of email, I'm beginning to learn how to type,
  13750. so I'm not afraid of verbose programming.  I use big long names in my c++
  13751. code too.  I just don't like putting periods all through them.  Too much
  13752. like Unix.  ;)
  13753.  
  13754. I also think the Frontier folks have to give the Apple folks some credit.
  13755. They went out of their way to allow Frontier to interact.  Consider how the
  13756. two scripting systems can read and run each other's scripts.  While the
  13757. =46rontier folks were prompt in supporting the OSA scripting API, the
  13758. AppleScript folks did it almost exclusively to provide Frontier a way into
  13759. their scripting system.  It would have been easier to make AppleScript not
  13760. extensible this way.  Once they did they this though, I think everyone
  13761. realized that it was the right thing to do.  Remember, OSA is part of
  13762. AppleScript, so it provides a benefit for everyone, including Frontier
  13763. users.
  13764.  
  13765. OSA is also going to be part of OpenDoc.  It will be the method used to
  13766. control and describe parts.  That means object model.
  13767.  
  13768. "John W. Baxter" <jwbaxter@OLYMPUS.NET> wrote:
  13769. >At 13:24 8/19/94 -0500, David Boroditsky wrote:
  13770. >>Frontier has the ability to remove the source code from the tokenized code=
  13771. .
  13772. >>This can be quite useful if you are selling scripts, or don't want the
  13773. >>curious mucking about. I don't know if AppleScript can do this as well.
  13774. >
  13775. >Yes...AppleScript does provide this capability.  Actually, once an
  13776. >AppleScript script is compiled and the window is closed, the source is
  13777. >gone.  The script is decompiled later when the source is needed again.  But
  13778. >the underlying software provides a flag that says "don't allow decompiling
  13779. >to source", and the Script Editor provides a way of setting that flag when
  13780. >saving a script.
  13781.  
  13782. Actually, AppleScript removes the instructions on how to recreate the
  13783. script, making the script smaller and completely preventing access to the
  13784. original script.  You could probably still do some kind of disassembly, but
  13785. you wouldn't have variable names and comments.  You would have externally
  13786. scoped names though.  It's more than simply a switch.
  13787.  
  13788. This is one of the reasons that AppleScripts stored in Hypercard are
  13789. smaller than 30,000 characters, like their HyperTalk brethren.
  13790. AppleScripts store the code and the source.
  13791.  
  13792. I was actually thinking that this would be a good way to store data,
  13793. including that guy's password.  Use this script:
  13794.  
  13795.     property secretDataName : ""
  13796.  
  13797. and store it read only.  Then use this script to access it:
  13798.  
  13799.     set f to load script alias "Sylvester:Desktop Folder:foo"
  13800.     log f's foo
  13801.     set f's foo to "Bite me"
  13802.     log f's foo
  13803.     store script f in alias "Sylvester:Desktop Folder:foo" replacing yes
  13804.  
  13805. Now you can read and write the value.  Of course, this isn't encrypted.
  13806. Here's the scpt resource in ASCII:
  13807.  
  13808. =46asdUAS
  13809. 1.101.10=0E=00=00=00=04=0F=9D=9D=9D=9C=00=01=00=02=01=9D=9D=00=00=01=9D=9C=
  13810. =00=00=0E=00=01=00=00=0F=10=00=02=00=03=9D=9B=00=03=00=04=01=9D=9B=00=00=10=
  13811. =00=03=00=01=9D=B8=0B=9D=B8=00=070=00=03foo=00=00=0C=00
  13812. =04=00
  13813. =00=07Bite me=00=02=00=00ascr=00=01=00=0C=99=DE=DE=82
  13814.  
  13815. As you can see, the property name and value are present for all to see.
  13816. I'm not positive, but I'm willing to bet that "Fasd" is the tag for a
  13817. script.  It's the same whether or not the script is read-only.  "UAS
  13818. 1.101.10" is the AppleScript internal version data.  It's probably created
  13819. version & modified version.  Then there's some script data, the name of the
  13820. script and it's value.  Then there's the scripting component code and some
  13821. trailer bytes "=99=DE=DE=82".  In hex they look like $FADEDEAD.
  13822.  
  13823. OK, so that's more detail than needed, but hey, it's my fingers and purely
  13824. recycled electrons.
  13825.  
  13826. Jon
  13827. =========================================================================
  13828. Date:         Sat, 20 Aug 1994 08:05:32 CDT
  13829. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13830. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13831. From:         Peter Fleck - SMM <fleck@ASTRO.SPA.UMN.EDU>
  13832. Subject:      Re: creation of a MacScripting newsgroup
  13833.  
  13834. > --Lawrence D'Oliveiro wrote:
  13835. > >
  13836. > >My last message was sent to just 399 participants (and the number seems to be
  13837. > >slowly declining :-O), but I think it would make sense to set up a newsgroup
  13838. > >anyway. I believe it should be called something like comp.sys.mac.scripting.
  13839. > >I furthermore believe that it should subsume the existing
  13840. > >comp.sys.mac.hypercard group, since there will be a lot of overlap in their
  13841. > >subject area.
  13842. >
  13843. -- Hades responds:
  13844. >     This was one of the reasons the csm.scripting group didn't get off
  13845. > the ground the first time. No one seemed to want to go to the
  13846. > csm.hypercard newsgroup and get their opinion on the move. We would not
  13847. > only have to convince them to change the name of their group, but to
  13848. > also allow for a more than doubling of the current traffic with
  13849. > non-hypercard related posts.
  13850.  
  13851. Don't look now but Allegiant (parent to SuperCard) is in the process of
  13852. forming c.s.m.supercard because they don't want to hang with the HC folks
  13853. in c.s.m.h any longer. Opinions in c.s.m.h vary on this; some of us (me
  13854. included) like reading everything in one place and so far, the SC posts
  13855. aren't overwhelming. (You do have to put up with folks answering HC questions
  13856. with "If you want to do that, just buy SuperCard.")
  13857.  
  13858. Merging HC, AS, SC and whatever into c.s.m.scripting would create a very
  13859. busy news group. Personally, I don't like the idea but I do see advantages
  13860. also.
  13861.  
  13862. But the HyperCarders wouldn't let you do it anyway  :-) .
  13863.  
  13864. I would like to see an AS news group and see this list maintained
  13865. separately.
  13866.  
  13867. Peter
  13868. =========================================================================
  13869. Date:         Sat, 20 Aug 1994 11:33:37 -0500
  13870. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13871. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13872. From:         Terry Thiel <tthiel@FIREFLY.PRAIRIENET.ORG>
  13873. Subject:      Re: Second edition of Tao book
  13874. In-Reply-To:  <199408191658.AA28780@firefly.prairienet.org>
  13875.  
  13876. I thnk the new edition is Great!! I ordered two copies in fact.  I got mine
  13877. straight from hayden books.  They overnighted them whcih was much faster than
  13878. BMUG's ordering.  I wish they would do something about that.  You're supposed
  13879. to leave your visa number on a recording and wait weeks for the product
  13880. unless you pay $25 extra for rush shipping.
  13881. =========================================================================
  13882. Date:         Sat, 20 Aug 1994 14:16:08 -0500
  13883. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13884. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13885. From:         Fred Terry <pfterry@LKS.CSI.COM>
  13886. Subject:      osaxen database
  13887.  
  13888. I've pulled a copy of a small osaxen database from AOL. It isn't complete,
  13889. but does look like a good start. It's in FileMaker format. You'll find it
  13890. in
  13891.  
  13892. ftp://gaea.kgs.ukans.edu/applescript/addons/BBOsaxenDB.sit.hqx
  13893.  
  13894. Enjoy.
  13895.  
  13896. pf
  13897.  
  13898.  
  13899. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  13900. Fred Terry  Cadence Design Systems  pfterry@lks.csi.com  +1 913 841 1283
  13901. =========================================================================
  13902. Date:         Sat, 20 Aug 1994 13:50:08 -0700
  13903. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13904. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13905. From:         David Ray <daver@NETCOM.COM>
  13906. Subject:      Re: MacPGP scripts
  13907.  
  13908. >Hi all,
  13909. >        I've just finished my addition to the MacPGP <-> Eudora universe,
  13910. >and would like to find some hardy souls to try and break it!
  13911. >        I have a MacPGP.lib (24K) and an Encrypt the out basket script
  13912. >(8K), Decrypt the in basket is not yet finished and not availible : (.
  13913.  
  13914.  
  13915. I have already written some PGP <--> Eudora scripts that I have been using
  13916. myself. I'd be interested in trying out your scripts and possibly sharing
  13917. mine.
  13918.  
  13919. -Dave
  13920.  
  13921.  -----------------------------------------------------------------------
  13922.  David Ray                Dream Designs          Music Composition
  13923.  daver@netcom.com         PO Box 5631            Interactive Multimedia
  13924.  510-527-9010             Berkeley CA 94705      Virtual Worlds
  13925. =========================================================================
  13926. Date:         Sat, 20 Aug 1994 13:59:27 -0800
  13927. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13928. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13929. From:         Mark Alldritt <alldritt@WIMSEY.COM>
  13930. Subject:      Re: Wanted: CTB osax
  13931.  
  13932. I seriously considered adding a series of CTB commands along the lines of
  13933. the File IO commands to Script Tools 1.4.  I finally decided not to because
  13934. of the existance of programs like SITcomm and others which provide
  13935. scriptable access to the CTB through an application.
  13936.  
  13937. However, I can see that OSAX support for the CTB has some advantages.  Your
  13938. script can perform communications with a smaller memory footprint, and you
  13939. can better conceal the communications from the user.  Also, for highly
  13940. controlled communications, there may be a performance improvement (no
  13941. context switches, etc.).
  13942.  
  13943. Its certainly feasible, the TCP OSAX has proven that.
  13944.  
  13945. Maybe in Script Tools 1.5  ;-)
  13946.  
  13947. -Mark
  13948. =========================================================================
  13949. Date:         Sat, 20 Aug 1994 14:22:48 -0700
  13950. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13951. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13952. From:         David Ray <daver@NETCOM.COM>
  13953. Subject:      Re: Wanted: CTB osax
  13954.  
  13955. Here is my 'wish list' if anyone is going to write such as OSAX:
  13956.  
  13957. - Should have capability of "wait for string" and "send string", like ZTerm
  13958. and Microphone.
  13959.  
  13960. - Should have capability of putting received data into a variable, like the
  13961. TCP/IP OSAX can do. This allows you to write if/then statements about what
  13962. to do depending on the data sent.
  13963.  
  13964. -Dave
  13965.  
  13966.  -----------------------------------------------------------------------
  13967.  David Ray                Dream Designs          Music Composition
  13968.  daver@netcom.com         PO Box 5631            Interactive Multimedia
  13969.  510-527-9010             Berkeley CA 94705      Virtual Worlds
  13970. =========================================================================
  13971. Date:         Sat, 20 Aug 1994 21:54:06 -0800
  13972. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13973. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13974. From:         Erik Smith <ersmith@UCSD.EDU>
  13975. Subject:      Way to have background only script?
  13976.  
  13977. I want to have a script application to be "faceless" i.e. not show up in
  13978. the application menu.  Is there a way to do this.   How about a way for the
  13979. script itself to do it using the scriptable Finder ?
  13980.  
  13981. -Erik
  13982. =========================================================================
  13983. Date:         Sun, 21 Aug 1994 10:56:03 +0000
  13984. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13985. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13986. From:         Wagner Luiz Truppel <wlt@MERCURIO.UC.PT>
  13987. Subject:      [Q] How to upload a contribution to gaea
  13988.  
  13989. Hi all,
  13990.  
  13991. can I simply send a message to this address, containing the binhex code of
  13992. the submission, or do I have to connect to gaea and manually upload it to
  13993. the incoming folder?
  13994.  
  13995. Thanks !
  13996.  
  13997.  
  13998. Wagner Luiz Truppel
  13999. WLT@MERCURIO.UC.PT
  14000. =========================================================================
  14001. Date:         Sun, 21 Aug 1994 10:56:17 +0000
  14002. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14003. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14004. From:         Wagner Luiz Truppel <wlt@MERCURIO.UC.PT>
  14005.  
  14006. Hi all,
  14007.  
  14008. is it possible to test for a key being held down at launching time of a AS
  14009. applet or droplet? I mean something like the HyperCard snippet
  14010.  
  14011. if optionKey() is down then ...
  14012.  
  14013. Thanks !
  14014.  
  14015.  
  14016. Wagner Luiz Truppel
  14017. WLT@MERCURIO.UC.PT
  14018. =========================================================================
  14019. Date:         Sun, 21 Aug 1994 11:21:59 EDT
  14020. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14021. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14022. From:         "Robin B. Lake" <rbl@HAL.EPBI.CWRU.EDU>
  14023. Subject:      Re: MACSCRPT Digest - 19 Aug 1994 to 20 Aug 1994
  14024.  
  14025. Re:Scripting vs. Shell
  14026.  
  14027. Although I was an early purchaser of Frontier and followed AppleScript
  14028. as a very neat computer operating system concept, I never one got through
  14029. the fuzzy, complex and (to me) arcane overburden on either Frontier or
  14030. AppleScript.
  14031.  
  14032. Yesterday I installed MachTen.  A full BSD4.3 UNIX application that runs
  14033. as an application on my System 7 Mac.  Unlike A/UX (which I also have), it
  14034. does NOT require re-booting the system.
  14035.  
  14036. Why the enthusiasm?  (1) The entire Mac file system appears as the MachTen
  14037. file system;  (2)  I have the full power of the shell and C-shell to
  14038. manipulate the Mac files;  (3)  I have the neat Unix utilities to modify
  14039. the Mac files, such as grep, perl, awk, tr, etc.
  14040.  
  14041. For example, it is SO much easier (for me) to enter a single line:
  14042. $grep Creole *.eats
  14043.  
  14044. than it is to script something in Frontier or AppleScript.  AND you get
  14045. real pipes for concatenating the actions of several tools:
  14046. $grep Creole *.eats |head
  14047.  
  14048. As a Unix grey-beard, I'm quite excited about this new (to me) application
  14049. environment!  No commercial, but info@tenon.com got me into this  :=}}}
  14050.  
  14051. Rob Lake
  14052. Environmental Modeling Inc.
  14053. rbl@hal.cwru.edu
  14054. =========================================================================
  14055. Date:         Sun, 21 Aug 1994 16:21:12 +0000
  14056. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14057. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14058. From:         Neil Christie <neil@CHRISTIE.DEMON.CO.UK>
  14059. Subject:      Alternative Script Editor needed, do script, maximum length
  14060.  
  14061. Hi,
  14062.  
  14063. The AppleScript project I'm working on at the moment has just run into a
  14064. serious problem, it's reached the maximum length of the Script Editor. As I
  14065. need to add more to it and can't remove any of the script I need an
  14066. alternative Script Editor. At present I'm running Apple's Script Editor
  14067. v1.1 along with AppleScript v1.1. I can't really afford anything commercial
  14068. as I'm only 15 and have to pay for my Internet access. Therefore
  14069. ScriptWizard is no use. I therfore need a p.d, freeware, shareware or
  14070. anything else ware Script Editor. That is unless the next version of
  14071. Apple's Script Editor will support longer scripts.
  14072.  
  14073. At present the script is 29935 bytes of text, 135162 bytes of styled text,
  14074. 667 lines and 4927 words according to OtherMenu. The Description is pretty
  14075. short, 5 or so lines.
  14076.  
  14077. Failing that what's the easiest way to continue with my present Script
  14078. Editor. I expect it's along the lines of Jon's Commands (I think) do script
  14079. or something similar. I don't really want to have to deal with allowing the
  14080. other mini-scripts access to each others variables. Has anyone got any
  14081. examples or suggestions.
  14082.  
  14083. Finally does anyone have any email addresesses (how do you spell that?) at
  14084. Apple for suggestions, comments etc?
  14085.  
  14086. Thanks in advance, Neil.
  14087.  
  14088. P.S
  14089. I've rolled these questions into one message to save mailbox space and
  14090. reduce costs for those on a pay per message email system.
  14091.  
  14092. Neil Christie       |Voice/Fax: 031 229 6507
  14093. 14 West Castle Road |E-Mail:    Neil@christie.demon.co.uk
  14094. Edinburgh           |-------------------------------------
  14095. EH10 5AU            |Apple Macintosh Centris 660AV 8/230 CD.
  14096. Scotland            |System 7.1, running PPP on a 14.4K modem
  14097. =========================================================================
  14098. Date:         Sun, 21 Aug 1994 09:29:24 -0800
  14099. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14100. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14101. From:         Steve Michel <michel@NETCOM.COM>
  14102. Subject:      Re: Alternative Script Editor needed, do script, maximum length
  14103.  
  14104. >Hi,
  14105.  
  14106. Hi.
  14107.  
  14108. > I therfore need a p.d, freeware, shareware or
  14109. >anything else ware Script Editor. That is unless the next version of
  14110. >Apple's Script Editor will support longer scripts.
  14111.  
  14112. I don't think there are any freeware/shareware/pd script editors that will
  14113. solve your problem.
  14114.  
  14115. >Failing that what's the easiest way to continue with my present Script
  14116. >Editor.
  14117.  
  14118. The best way to handle this is to copy some related handlers, and save them
  14119. in a separate script. Use the Load Script Addition to load them into your
  14120. main script, and Tell statements to call handlers in the loaded script.
  14121. This way, each of your scripts can approach the maximum length. The benefit
  14122. of doing this, when its done right, is that it makes code easier to reuse:
  14123. you can have libraries of routines that can be loaded & used by separate
  14124. scripts. Its easier than reinventing the wheel each time, or copying &
  14125. pasting routines from script to script. Load Script is documented on page
  14126. 226 of the AppleScript Script Language Guide.
  14127. =========================================================================
  14128. Date:         Sun, 21 Aug 1994 17:39:06 GMT
  14129. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14130. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14131. From:         Paul G Smith <paul@CTALK.EXNET.COM>
  14132. Organization: commstalk, & Full Moon Software Inc
  14133. Subject:      Re: Alternative Script Editor needed, do script, maximum length
  14134.  
  14135. In Regards to your letter <199408211535.AA00842@exnet.com>:
  14136. > Hi,
  14137. >
  14138. > The AppleScript project I'm working on at the moment has just run into a
  14139. > serious problem, it's reached the maximum length of the Script Editor. As I
  14140. > need to add more to it and can't remove any of the script I need an
  14141. > alternative Script Editor. At present I'm running Apple's Script Editor
  14142. > v1.1 along with AppleScript v1.1. I can't really afford anything commercial
  14143. > as I'm only 15 and have to pay for my Internet access. Therefore
  14144. > ScriptWizard is no use. I therfore need a p.d, freeware, shareware or
  14145. > anything else ware Script Editor. That is unless the next version of
  14146. > Apple's Script Editor will support longer scripts.
  14147. >
  14148. > At present the script is 29935 bytes of text, 135162 bytes of styled text,
  14149. > 667 lines and 4927 words according to OtherMenu. The Description is pretty
  14150. > short, 5 or so lines.
  14151. >
  14152. > Failing that what's the easiest way to continue with my present Script
  14153. > Editor. I expect it's along the lines of Jon's Commands (I think) do script
  14154. > or something similar. I don't really want to have to deal with allowing the
  14155. > other mini-scripts access to each others variables. Has anyone got any
  14156. > examples or suggestions.
  14157.  
  14158. Even though ScriptWizard would help a bit, there may be a better way to
  14159. solve your problem that would also work with the Apple Script Editor.
  14160. It's best not to build gigantic monolithic scripts in AppleScript
  14161. (or any other scripting or programming language) - it's not good style.
  14162. Your script will be much easier to maintain and debug if you split
  14163. it into smaller modules:
  14164.  
  14165. Try breaking the script up into logically-organized modules containing
  14166. related handlers, each module in its own script file. The main body of the
  14167. script can then use the "load script" command to load these separately
  14168. saved script modules into variables in memory, and then you can send
  14169. messages to those script-object variables to execute the functions defined
  14170. in them. You'll have to reorganize your code a bit but you'll be better
  14171. off for it (for instance, globals can't be simply shared between handlers
  14172. in the script objects and the main script, although they can be referenced
  14173. if you need to; but you don't use too many globals, do you?)
  14174.  
  14175. A good example of this approach is the "finderlib" script library
  14176. that was distributed with AS 1.0; use the same approach and your script
  14177. can effectively be as large as you like.
  14178.  
  14179.  
  14180. best regards, Paul
  14181.  
  14182. +------------------------------------------------------------------+
  14183. | Paul G Smith, Full Moon Software        ||  UK ph: +44 727 844232
  14184. | PO Box 116, ST ALBANS, Herts AL1 2RL UK ||    fax: +44 727 856139
  14185. | & Full Moon Software, Inc               ||  US ph: 408 253 7199
  14186. | P O Box 700237, SAN JOSE, CA 95170 USA  ||    fax: 408 252 2378
  14187. =========================================================================
  14188. Date:         Sun, 21 Aug 1994 10:20:58 -0700
  14189. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14190. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14191. From:         Derrick Schneider <derrick@NETCOM.COM>
  14192. Subject:      Re: your mail
  14193. In-Reply-To:  <199408210858.BAA16905@mail3.netcom.com>
  14194.  
  14195. On Sun, 21 Aug 1994, Wagner Luiz Truppel wrote:
  14196.  
  14197. > is it possible to test for a key being held down at launching time of a AS
  14198. > applet or droplet? I mean something like the HyperCard snippet
  14199.  
  14200. The Jon'sCommands Scripting Addition (presumably available from gaea) has
  14201. a "keys pressed" command which returns a list of the keys being pressed.
  14202. It's excellent. I have one script for setting my volume, depending on
  14203. what number is pressed when I launch the script. I also have a script
  14204. which will either reveal the original of an alias (via normal
  14205. drag-and-drop) or will open the Get Info window of the original (if the
  14206. option key is held down on dragging-and-dropping).
  14207.  
  14208. Derrick
  14209. =========================================================================
  14210. Date:         Sun, 21 Aug 1994 10:25:27 -0700
  14211. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14212. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14213. From:         Derrick Schneider <derrick@NETCOM.COM>
  14214. Subject:      Re: Second edition of Tao book
  14215. In-Reply-To:  <199408201635.JAA27442@mail.netcom.com>
  14216.  
  14217. On Sat, 20 Aug 1994, Terry Thiel wrote:
  14218.  
  14219. > I thnk the new edition is Great!! I ordered two copies in fact.  I got mine
  14220.  
  14221. Thanks! It's nice to hear that.
  14222.  
  14223. > BMUG's ordering.  I wish they would do something about that.  You're supposed
  14224. > to leave your visa number on a recording and wait weeks for the product
  14225. > unless you pay $25 extra for rush shipping.
  14226.  
  14227. Ah, yes. The constant BMUG problem. Our shipping department (last time I
  14228. checked, it was only one or two part-time people) gets really swamped and
  14229. it does take them a while to get things out. In addition, it takes a
  14230. while for the order to filter its way through our office staff. They do
  14231. work hard to get things out quickly, but it's the old "overworked,
  14232. understaffed" problem.
  14233.  
  14234. Derrick
  14235. =========================================================================
  14236. Date:         Sun, 21 Aug 1994 13:23:59 -0400
  14237. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14238. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14239. From:         anthony brown <ANBROWN@HUSC.BITNET>
  14240. Subject:      What is the gaea ftp site again?
  14241. In-Reply-To:  <01HG6820L6XE9VZ0Z3@NETOP8.HARVARD.EDU>
  14242.  
  14243. What is the of the gaea ftp site, either with the pathname or the ip address?
  14244.  
  14245. I erased the message with the site name by accident
  14246.  
  14247. Anthony
  14248.  
  14249. -- The Dolphins will win the Super Bowl this season!
  14250.  
  14251. -- "If never I held you, my feelings would never show...
  14252. --  It's time I started walking but
  14253. --  Theres so much you'll never know!!"
  14254. --  Paul Stanley circa 1976
  14255. =========================================================================
  14256. Date:         Sun, 21 Aug 1994 20:10:14 +0100
  14257. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14258. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14259. From:         Christian Orellana <muscabo@DFI.AAU.DK>
  14260. Subject:      Re: Wanted: CTB osax
  14261.  
  14262. daver@netcom.com wrote:
  14263. >Here is my 'wish list' if anyone is going to write such as OSAX:
  14264. >
  14265. >- Should have capability of "wait for string" and "send string", like ZTerm
  14266. >and Microphone.
  14267. >
  14268. >- Should have capability of putting received data into a variable, like the
  14269. >TCP/IP OSAX can do. This allows you to write if/then statements about what
  14270. >to do depending on the data sent.
  14271. >
  14272.  
  14273. This would indeed be very nice, and is a thing that has annoyed me about
  14274. SITcomm, which allows you to "wait for text", but only if you know what to
  14275. wait for!
  14276.  
  14277. Best regards -
  14278. Christian A.Borlund Orellana
  14279. Institute of Physics and Astronomy Aarhus University.
  14280. ______________________________________________________
  14281. Internet e-mail:        muscabo@dfi.aau.dk
  14282. voice:                  +45-86102798
  14283. mail:                   Dr.Margrethesvej 11,3.th.
  14284.                         8200 Aarhus N, DENMARK.
  14285. ______________________________________________________
  14286. =========================================================================
  14287. Date:         Sun, 21 Aug 1994 14:24:52 -0500
  14288. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14289. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14290. From:         Steve Martin <martin@METRONET.COM>
  14291. Subject:      Re: Wanted: CTB osax
  14292.  
  14293. >daver@netcom.com wrote:
  14294. >>- Should have capability of putting received data into a variable, like the
  14295. >>TCP/IP OSAX can do. This allows you to write if/then statements about what
  14296. >>to do depending on the data sent.
  14297. >>
  14298. >
  14299. >This would indeed be very nice, and is a thing that has annoyed me about
  14300. >SITcomm, which allows you to "wait for text", but only if you know what to
  14301. >wait for!
  14302.  
  14303. You can use file capturing to get the text. Just turn it on before you send
  14304. the text, turn it off afte you get your match and then read the file in to
  14305. a variable so you can act on it.  I use this method in a Hypercard stack
  14306. that downloads stock quotes from BASICQUOTES on Compuserve and it works
  14307. quite well.
  14308.  
  14309. Steve Martin (Please don't ask, I'm not the actor.)
  14310. martin@metronet.com
  14311. WWW: http://www.metronet.com/1/HomePages/martin
  14312.      Upcoming letterboxed movie TV schedule and latest version of Dockernaut
  14313. =========================================================================
  14314. Date:         Sun, 21 Aug 1994 13:24:30 -0600
  14315. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14316. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14317. From:         "Andy Cemelli [remote]" <ANDYC@WORDPERFECT.COM>
  14318. Subject:      Re: creation of a MacScripting newsgroup -Reply -Reply
  14319.  
  14320. If you have to actually go out and read the newsgroup, I wouldn't be
  14321. able to easily participate.
  14322.  
  14323. If you decide to make a newsgroup, then please be sure to keep the
  14324. mailing list as well and link to it...but my preference is to  _STAY
  14325. A MAILING LIST_...
  14326. =========================================================================
  14327. Date:         Sun, 21 Aug 1994 14:42:38 -0800
  14328. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14329. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14330. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  14331. Subject:      Re: Wanted: CTB osax
  14332.  
  14333. >- Should have capability of "wait for string" and "send string", like ZTerm
  14334. >and Microphone.
  14335. >
  14336.         This is pretty easy...
  14337.  
  14338.  
  14339. >- Should have capability of putting received data into a variable, like the
  14340. >TCP/IP OSAX can do. This allows you to write if/then statements about what
  14341. >to do depending on the data sent.
  14342. >
  14343.         This is not :(.  The reason is that unlike TCP/IP which is
  14344. packetized, serial port data is just that a "serial stream" of bytes.  How
  14345. often do you return the data?  Who does buffering?
  14346.  
  14347.  
  14348. Leonard
  14349.  
  14350. -----------------------------------------------------------------------------
  14351. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  14352. Director of Advanced Technology         AppleLink:      MACgician
  14353. Aladdin Systems, Inc.                   GEnie:          MACgician
  14354. =========================================================================
  14355. Date:         Mon, 22 Aug 1994 09:52:00 +1200
  14356. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14357. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14358. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  14359.               NZ" <LDO@WAIKATO.AC.NZ>
  14360. Subject:      Re: creation of a MacScripting newsgroup
  14361.  
  14362. Fred Terry <pfterry@LKS.CSI.COM> writes:
  14363.  
  14364. >The simplest (perhaps, sanest?) way to do this--if we do
  14365. >it at all--is to create a new group. An probably one that does not have
  14366. >programming in it's name.
  14367.  
  14368. OK, I'm willing to bow to the views of those with a bit more knowledge about
  14369. this. I thought it would make for rationalization to combine the existing
  14370. HyperCard group into a scripting group, but obviously there's a certain
  14371. element of politicking about this (cf the proposal for a SuperCard group).
  14372.  
  14373. >And Lawrence, where did you get that 399 number? A rev macscrpt just show 779
  14374. >members (which is down from 780-something since the last time I checked). Or
  14375. >did I misunderstand?
  14376.  
  14377. Every time I send a message to this list, I get a response from the server
  14378. saying my message was successfully delivered, with a parenthetical note about
  14379. N participants/recipients. N started out around 434, and slowly dropped. The
  14380. last couple of messages it was 399.
  14381.  
  14382. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  14383. Info & Tech Services Division              fax: +64-7-838-4066
  14384. University of Waikato            electric mail: ldo@waikato.ac.nz
  14385. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  14386. =========================================================================
  14387. Date:         Mon, 22 Aug 1994 09:53:00 +1200
  14388. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14389. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14390. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  14391.               NZ" <LDO@WAIKATO.AC.NZ>
  14392. Subject:      Re: Any way to "compile" a s
  14393.  
  14394. "John W. Baxter" <jwbaxter@OLYMPUS.NET> writes:
  14395.  
  14396. >Here's a working example:
  14397. >
  14398. >    run script "display dialog \"Here I am\""
  14399. >
  14400. >
  14401. >----------
  14402. >However, I have Run Script 1.1.1b1 (April 1994).  Someone else will have to
  14403. >remember where I got that update ;-)
  14404.  
  14405. My version of Run Script is 1.1, and the above example worked for me.
  14406.  
  14407. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  14408. Info & Tech Services Division              fax: +64-7-838-4066
  14409. University of Waikato            electric mail: ldo@waikato.ac.nz
  14410. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  14411. =========================================================================
  14412. Date:         Mon, 22 Aug 1994 15:25:00 +1200
  14413. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14414. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14415. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  14416.               NZ" <LDO@WAIKATO.AC.NZ>
  14417. Subject:      Scriptable Finder oddity
  14418.  
  14419. Here's a strange one. Our Quadra 950 server is running PowerShare and a bunch
  14420. of other things, including AppleScript and QuicKeys 3.0 so things can be
  14421. controlled remotely. I also put on the Finder Scripting Extension, thinking
  14422. I could use that to do a remote backup of the Users & Groups Data File, which
  14423. is locked against access from an AppleShare client. I just tried to send
  14424. the server's Finder a command to copy that file, and it doesn't work.
  14425.  
  14426. I'm logged on to the server as super-user. I can open the Preferences folder
  14427. of the Server Folder, and I can see all the files there, including the
  14428. Users & Groups Data File. Yet when I try the following script
  14429.  
  14430.     tell application "Finder" of machine "Vice"
  14431.         name of every file of folder "Preferences" of folder "Server Folder"
  14432.             of startup disk
  14433.     end tell
  14434.  
  14435. (assume a line-continuation at the appropriate place), it lists all the
  14436. files, *except* the Users & Groups Data File! I'm linked to the Finder as
  14437. super-user, in case that should make any difference.
  14438.  
  14439. The file isn't being skipped because it's in use, either: the PowerTalk Setup
  14440. Preferences file is in use and cannot be copied via AppleShare, yet it shows
  14441. up in the list OK. I also tried creating another file with a name beginning
  14442. with Z, just in case the bug happened to affect the last file in the list,
  14443. but that extra file shows up fine, while the Users & Groups Data File still
  14444. doesn't.
  14445.  
  14446. Interesting. By messing around with the type and creator of that extra file
  14447. I created, it appears the Finder is deliberately ignoring files with creator
  14448. "ugbt" (the file type doesn't seem to matter).
  14449.  
  14450. Any ideas as to why this is happening, anybody?
  14451.  
  14452. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  14453. Info & Tech Services Division              fax: +64-7-838-4066
  14454. University of Waikato            electric mail: ldo@waikato.ac.nz
  14455. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  14456. =========================================================================
  14457. Date:         Sun, 21 Aug 1994 22:07:54 -0700
  14458. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14459. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14460. From:         Jon Pugh <jonpugh@NETCOM.COM>
  14461. Subject:      Re: Scriptable Finder oddity
  14462.  
  14463. "Lawrence D'Oliveiro" <LDO@WAIKATO.AC.NZ> wrote:
  14464. >
  14465. >Interesting. By messing around with the type and creator of that extra file
  14466. >I created, it appears the Finder is deliberately ignoring files with creator
  14467. >"ugbt" (the file type doesn't seem to matter).
  14468. >
  14469. >Any ideas as to why this is happening, anybody?
  14470.  
  14471. I'm betting it was viewed as a security risk.  I just tried on my machine
  14472. (7Pro with the Scriptable Finder) and couldn't get the U&G file either.
  14473. Turning sharing off didn't help either.  It looks like the Scriptable
  14474. Finder just doesn't want you to mess with that file.
  14475.  
  14476. Time for an osax!  ;)
  14477.  
  14478. Jon
  14479. =========================================================================
  14480. Date:         Sun, 21 Aug 1994 22:08:01 -0700
  14481. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14482. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14483. From:         Jon Pugh <jonpugh@NETCOM.COM>
  14484. Subject:      Re: Alternative Script Editor needed, do script, maximum length
  14485.  
  14486. Neil Christie <neil@CHRISTIE.DEMON.CO.UK> writes:
  14487. >
  14488. >The AppleScript project I'm working on at the moment has just run into a
  14489. >serious problem, it's reached the maximum length of the Script Editor. As I
  14490. >need to add more to it and can't remove any of the script I need an
  14491. >alternative Script Editor. At present I'm running Apple's Script Editor
  14492. >v1.1 along with AppleScript v1.1. I can't really afford anything commercial
  14493. >as I'm only 15 and have to pay for my Internet access. Therefore
  14494. >ScriptWizard is no use. I therfore need a p.d, freeware, shareware or
  14495. >anything else ware Script Editor. That is unless the next version of
  14496. >Apple's Script Editor will support longer scripts.
  14497.  
  14498. I just submitted my ScriptServer application to Sumex and Fred.  It allows
  14499. you to use MPW to edit your scripts and then build them with ScriptServer.
  14500. MPW has no 30K limit.  It should be easy to write a BBEdit extension too.
  14501. You lose the styled text this way, but you gain the ability to use #include
  14502. files and/or the C preprocessor (we just use an MPW script which does the
  14503. #include since the preprocessor takes more time).  This allows you to make
  14504. libraries of scripts without the overhead of extra files and load/store
  14505. commands.
  14506.  
  14507. ScriptServer is shareware, so it's almost free.  ;)
  14508.  
  14509. Jon
  14510. =========================================================================
  14511. Date:         Mon, 22 Aug 1994 07:09:39 +0200
  14512. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14513. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14514. From:         Ralph Flassig <flassig@COLI.UNI-SB.DE>
  14515. Subject:      frontier, quark, object model
  14516.  
  14517. Greetings,
  14518.  
  14519. I just started scripting QuarkXPress with Frontier and I must have something
  14520. missing, because I do have problems with the object model. I did some AS
  14521. scripting before and all worked fine especially constructions like
  14522. tell default document 1
  14523.   set ....
  14524. But playing around with the example DocumentConstruction script delivered with
  14525. the QuarkXPress Frontier Suite I always get the error message "specified object
  14526. not found" when I try the with code like
  14527. with defaultdocument[1]
  14528.   oldHeight = get(pageHeight)
  14529. ...
  14530. it works fine with
  14531. oldHeight = get(defaultdocument[1].pageHeight)
  14532.  
  14533. Sorry for this newbie question, but after but after all the debugging and
  14534. stepping around (I can be more explicit, if needed) I thought someone of
  14535. you must have seen similar problems
  14536.  
  14537. thanks in advance
  14538.  
  14539. ralph
  14540. =========================================================================
  14541. Date:         Mon, 22 Aug 1994 17:15:00 +1200
  14542. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14543. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14544. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  14545.               NZ" <LDO@WAIKATO.AC.NZ>
  14546. Subject:      Re: Scriptable Finder oddity
  14547.  
  14548. Jon Pugh <jonpugh@NETCOM.COM> writes:
  14549.  
  14550. >"Lawrence D'Oliveiro" <LDO@WAIKATO.AC.NZ> wrote:
  14551. >>
  14552. >>Interesting. By messing around with the type and creator of that extra file
  14553. >>I created, it appears the Finder is deliberately ignoring files with creator
  14554. >>"ugbt" (the file type doesn't seem to matter).
  14555. >
  14556. >I'm betting it was viewed as a security risk.
  14557.  
  14558. I'm inclined to agree. However, unlike another security hack the Finder does
  14559. (disallowing invocation of the shutdown and restart commands by programs
  14560. linking over the network), this one is a denial to _all_ users: even if you ask
  14561. your local Finder, it still won't let you see your own Users & Groups Data File!
  14562.  
  14563. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  14564. Info & Tech Services Division              fax: +64-7-838-4066
  14565. University of Waikato            electric mail: ldo@waikato.ac.nz
  14566. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  14567. =========================================================================
  14568. Date:         Sun, 21 Aug 1994 22:26:23 -0800
  14569. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14570. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14571. From:         Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
  14572. Subject:      Re: Scriptable Finder oddity
  14573.  
  14574. >"Lawrence D'Oliveiro" <LDO@WAIKATO.AC.NZ> wrote:
  14575. > then Jon Pugh <jonpugh@NETCOM.COM> wrote:
  14576. >
  14577. >I'm betting it was viewed as a security risk.  I just tried on my machine
  14578. >(7Pro with the Scriptable Finder) and couldn't get the U&G file either.
  14579. >Turning sharing off didn't help either.  It looks like the Scriptable
  14580. >Finder just doesn't want you to mess with that file.
  14581. >
  14582. >Time for an osax!  ;)
  14583.  
  14584. Didn't the mighty Quinn (or was that Quinn the eskimo) write an osax that
  14585. is on gaea that reads and writes the users and groups file for AppleShare?
  14586. Will that osax handle this users and groups file?
  14587.  
  14588. Kee Nethery
  14589. =========================================================================
  14590. Date:         Mon, 22 Aug 1994 18:11:32 +1200
  14591. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14592. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14593. From:         Owen Watson <owen@RSNZ.GOVT.NZ>
  14594. Subject:      Text delimiters - why not working?
  14595.  
  14596. I am trying to parse out items from a text string. Unfortunately chars like
  14597. hash, star(*) etc seem to count as separate words even when you define the
  14598. delimiters:
  14599.  
  14600. set AppleScript's text item delimiters to { " ", tab}
  14601. set vt to "QUERYPERSNAME" & tab & "#WATSON"
  14602. set vz to second word of vt
  14603.  
  14604. produces vz equal to #.
  14605.  
  14606. Any suggestions?
  14607.  
  14608.  
  14609.  
  14610. _________________________________________________________________________
  14611. Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
  14612. Internet watson.o@rsnz.govt.nz  Ph: +64 4 472 7421 Fax: +64 4 473 1841
  14613. The gateway to New Zealand science: http://www.rsnz.govt.nz/
  14614. =========================================================================
  14615. Date:         Sun, 21 Aug 1994 23:29:34 -0700
  14616. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14617. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14618. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  14619. Subject:      Re: frontier, quark, object model
  14620.  
  14621. >Greetings,
  14622. >
  14623. >I just started scripting QuarkXPress with Frontier and I must have something
  14624. >missing, because I do have problems with the object model. I did some AS
  14625. >scripting before and all worked fine especially constructions like
  14626. >tell default document 1
  14627. >  set ....
  14628. >But playing around with the example DocumentConstruction script delivered with
  14629. >the QuarkXPress Frontier Suite I always get the error message "specified object
  14630. >not found" when I try the with code like
  14631. >with defaultdocument[1]
  14632. >  oldHeight = get(pageHeight)
  14633. >...
  14634. >it works fine with
  14635. >oldHeight = get(defaultdocument[1].pageHeight)
  14636. >
  14637. >Sorry for this newbie question, but after but after all the debugging and
  14638. >stepping around (I can be more explicit, if needed) I thought someone of
  14639. >you must have seen similar problems
  14640.  
  14641. I'm assuming that "outside" the
  14642.    with defaultDocument [1]
  14643. you have a with objectModel, qxp.defs
  14644.  
  14645. If you happen to be using Frontier 3.0.2, your problem is explained by an
  14646. error which crept into that version.  It was a matter of not carrying
  14647. default objects into called scripts when it didn't make sense to do so.
  14648. Unfortunately, there are cases where it DOES make sense...your code is an
  14649. example.
  14650.  
  14651. If you are running Frontier 3.0.2, you can upgrade to 3.0.3 using the
  14652. upgrader found at
  14653.  
  14654.    ftp://gaea.kgs.ukans.edu:frontier/FromUserland/upgrade303.sea.hqx
  14655.  
  14656. [If you happen to be running Frontier for PPC 3.0.2, send me email.]
  14657.  
  14658. You can probably force 3.0.2 to do the job you want by saying
  14659. with defaultdocument[1]
  14660.     oldHeight = get(objspec (pageHeight))
  14661.  
  14662.  
  14663. For other Frontier versions, I would need to see more of the script.
  14664.  
  14665. --John
  14666.  
  14667. --John W. Baxter    Port Ludlow, WA USA   jwbaxter@pt.olympus.net
  14668.   UserLand Software support
  14669. =========================================================================
  14670. Date:         Sun, 21 Aug 1994 23:43:41 -0700
  14671. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14672. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14673. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  14674. Subject:      Re: Text delimiters - why not working?
  14675.  
  14676. >I am trying to parse out items from a text string. Unfortunately chars like
  14677. >hash, star(*) etc seem to count as separate words even when you define the
  14678. >delimiters:
  14679. >
  14680. >set AppleScript's text item delimiters to { " ", tab}
  14681. >set vt to "QUERYPERSNAME" & tab & "#WATSON"
  14682. >set vz to second word of vt
  14683. >
  14684. >produces vz equal to #.
  14685. >
  14686.  
  14687. Words are delimited as words, including the effect you see with #.  Text
  14688. items are delimited by the text item delimiters.  The two processes are not
  14689. related.
  14690.  
  14691. One might therefore think that this would do what you want:
  14692.  
  14693. set AppleScript's text item delimiters to {" ", tab}
  14694. set vt to "QUERYPERSNAME" & tab & "#WATSON"
  14695. set vz to second text item of vt
  14696.  
  14697.  
  14698. however, it won't.  What will work is this:
  14699.  
  14700. set AppleScript's text item delimiters to {tab}  -- A subtle change here
  14701. set vt to "QUERYPERSNAME" & tab & "#WATSON"
  14702. set vz to second text item of vt
  14703.  
  14704. ----------
  14705. Notice that I slipped in a change to the first line of script.  This is
  14706. because of this comment in the AppleScript Language Guide English Dialect
  14707. currently in bookstores:
  14708.  
  14709.    "Currently, AppleScript only uses the first delimiter in the list" (page 159)
  14710.  
  14711. [Experiment verifies that version 1.1 behaves this way.]
  14712.  
  14713. So...setting AppleScript's text item delimiters to { " ", tab } is the same
  14714. as setting it to { "  " }
  14715.  
  14716.   --John
  14717.  
  14718. --
  14719. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  14720. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  14721. =========================================================================
  14722. Date:         Mon, 22 Aug 1994 08:41:46 GMT
  14723. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14724. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14725. From:         Paul G Smith <paul@CTALK.EXNET.COM>
  14726. Organization: commstalk, & Full Moon Software Inc
  14727. Subject:      Re: Alternative Script Editor needed, do script, maximum length
  14728.  
  14729. In Regards to your letter <199408220511.AA20144@exnet.com>:
  14730. >
  14731. > ScriptServer is shareware, so it's almost free.  ;)
  14732. >
  14733.  
  14734. But MPW isn't free or share-ware.  Or is it ?
  14735.  
  14736.  
  14737. best regards, Paul
  14738.  
  14739. +------------------------------------------------------------------+
  14740. | Paul G Smith, Full Moon Software        ||  UK ph: +44 727 844232
  14741. | PO Box 116, ST ALBANS, Herts AL1 2RL UK ||    fax: +44 727 856139
  14742. | & Full Moon Software, Inc               ||  US ph: 408 253 7199
  14743. | P O Box 700237, SAN JOSE, CA 95170 USA  ||    fax: 408 252 2378
  14744. =========================================================================
  14745. Date:         Mon, 22 Aug 1994 08:39:45 -0400
  14746. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14747. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14748. From:         John Schettino <js12@GTE.COM>
  14749. Subject:      Re: Any way to "compile" a script - SOLVED!
  14750.  
  14751. A person on AOL pointed out that jons commands 1.2 has a "run script"
  14752. command that is incompatible with AS 1.1. Version 1.3 fixes that problem. I
  14753. removed the 1.2 osax and now everything works fine!
  14754.  
  14755. Thanks for your help!
  14756.  
  14757. - john
  14758.  
  14759. -----------------------------------------
  14760. js12@gte.com             GTE Laboratories
  14761. John Schettino                Waltham, MA
  14762. =========================================================================
  14763. Date:         Mon, 22 Aug 1994 09:42:47 -0400
  14764. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14765. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14766. From:         Jeff Boulter <boulter@BUCKNELL.EDU>
  14767. Subject:      The fastest way to insert text
  14768. In-Reply-To:  <9408221246.AA06926@coral.bucknell.edu>
  14769.  
  14770. I'm writing a scrip which I'm trying to optimize for speed. The slowest
  14771. part involves opening up a text file, finding a marker, inserting a line
  14772. of text, and closing the file. Following is my code to do this. Anyone
  14773. have some better ideas about how to make this faster?
  14774.  
  14775. Thanks,
  14776.  
  14777. Jeff
  14778.  
  14779.         position file indexRefNum at 0
  14780.         set indexfile to read indexRefNum until eof
  14781.  
  14782.         repeat with n from 1 to 10000 -- find the section marker
  14783.                 set indexline to paragraph n of indexfile
  14784.                 if indexline is ("this is the marker") then
  14785.                         set eof indexRefNum to 0 -- live dangerously and
  14786. wipe out the file
  14787.                         repeat with m from 1 to (n - 1) -- write up to
  14788. the section marker
  14789.                                 write (paragraph m of indexfile & return)
  14790. to indexRefNum
  14791.                         end repeat
  14792.                         write entry to indexRefNum
  14793.                         repeat with m from n to 10000
  14794.                                 try -- write the rest of the file
  14795.                                         write (paragraph m of indexfile &
  14796. return) to indexRefNum
  14797.                                 on error
  14798.                                         exit repeat
  14799.                                 end try
  14800.                         end repeat
  14801.                         exit repeat
  14802.                 end if
  14803.         end repeat
  14804.  
  14805.  
  14806. --
  14807. Jeff Boulter    boulter@bucknell.edu   http://www.bucknell.edu/bucknellian/jeff
  14808. =========================================================================
  14809. Date:         Mon, 22 Aug 1994 08:45:30 -0500
  14810. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14811. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14812. From:         Fred Terry <pfterry@LKS.CSI.COM>
  14813. Subject:      Re: Alternative Script Editor needed, do script, maximum length
  14814. In-Reply-To:  Your message of "Sun, 21 Aug 94 22:08:01 PDT"
  14815.  
  14816. Jon sez.....
  14817.  
  14818. >I just submitted my ScriptServer application to Sumex and Fred.  It allows
  14819. >you to use MPW to edit your scripts and then build them with ScriptServer.
  14820. >MPW has no 30K limit.  It should be easy to write a BBEdit extension too.
  14821. >You lose the styled text this way, but you gain the ability to use #include
  14822. >files and/or the C preprocessor (we just use an MPW script which does the
  14823. >#include since the preprocessor takes more time).  This allows you to make
  14824. >libraries of scripts without the overhead of extra files and load/store
  14825. >commands.
  14826.  
  14827. You'll find ScriptServer in
  14828.  
  14829. ftp://gaea.kgs.ukans.edu/applescript/scriptableapps/ScriptServer1.0a3.hqx
  14830.  
  14831. Enjoy.
  14832.  
  14833. pf
  14834. =========================================================================
  14835. Date:         Mon, 22 Aug 1994 11:03:37 EDT
  14836. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14837. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14838. From:         Danny Goodman <DGoodman@AOL.COM>
  14839. Subject:      Re: The fastest way to insert text
  14840.  
  14841. >The slowest part involves opening up a text file, finding a
  14842. >marker, inserting a line of text, and closing the file.
  14843. >Following is my code to do this. Anyonehave some better
  14844. >ideas about how to make this faster?
  14845. [script deleted]
  14846.  
  14847. Rather than loop through the file, use the Offset scripting addition to find
  14848. the offset of the beginning character count of your marker.
  14849.  
  14850. Danny Goodman
  14851. =========================================================================
  14852. Date:         Mon, 22 Aug 1994 11:30:53 -0500
  14853. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14854. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14855. From:         Oscar Retterer <O_Retterer@ACAD.FANDM.EDU>
  14856. Subject:      AppleShare?
  14857.  
  14858. Is AppleShare scriptable, or is there a way to send AppleScripts to
  14859. AppleShare?
  14860.  
  14861.  
  14862.  
  14863.  
  14864.  
  14865.  
  14866.  
  14867. *********************************************************************
  14868. Oscar Retterer, Educational Development, Academic Technology Services
  14869. Franklin & Marshall College, Lancaster, PA 17604-3003
  14870. Phone: 717-291-4019 Fax:717-399-4446 Internet:O_Retterer@fandm.edu
  14871. *********************************************************************
  14872. =========================================================================
  14873. Date:         Mon, 22 Aug 1994 11:28:13 -0400
  14874. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14875. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14876. From:         John Schettino <js12@GTE.COM>
  14877. Subject:      Re: The fastest way to insert text
  14878.  
  14879. >I'm writing a scrip which I'm trying to optimize for speed. The slowest
  14880. >part involves opening up a text file, finding a marker, inserting a line
  14881. >of text, and closing the file. Following is my code to do this. Anyone
  14882. >have some better ideas about how to make this faster?
  14883.  
  14884. The fastest way is to avoid many read/write/test things!
  14885. I bet this will really speed it up.
  14886.  
  14887. ( you could generalize this into multiple replace, but that's an exercise
  14888. for the reader)
  14889.  
  14890. -- this uses Apple's open/read/write scripting additions
  14891.  
  14892. -- set entry to some value to write
  14893. set entry to "I'm new TEXT" & return
  14894.  
  14895. -- the marker we're looking for
  14896. set marker to "this is the marker" & return
  14897.  
  14898. -- open file (use your file name)
  14899. set indexRefNum to open for access file "System:Desktop Folder:test" with
  14900. write permission
  14901.  
  14902. -- read whole file
  14903. set indexfile to read indexRefNum
  14904.  
  14905. -- find offset in file of the marker
  14906. set markerLoc to offset of marker in indexfile
  14907.  
  14908. -- NOTE: offset will be 0 if not found
  14909. if markerLoc = 0 then
  14910.         if indexfile does not start with marker then -- bail out!
  14911.                 display dialog "bail"
  14912.                 close access indexRefNum
  14913.                 return
  14914.         end if
  14915. end if
  14916.  
  14917. -- write new string to file at the correct position
  14918. write entry to indexRefNum starting at markerLoc
  14919.  
  14920. -- write out rest of file
  14921. write (text from character (markerLoc + (length of marker)) of indexfile to
  14922. character -1 of indexfile) to indexRefNum
  14923.  
  14924. -- bada-bing, bada-boom, bada-replaced!
  14925. close access indexRefNum
  14926.  
  14927. - john
  14928.  
  14929. -----------------------------------------
  14930. js12@gte.com             GTE Laboratories
  14931. John Schettino                Waltham, MA
  14932. =========================================================================
  14933. Date:         Mon, 22 Aug 1994 08:36:24 -0800
  14934. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14935. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14936. From:         Erik Smith <ersmith@UCSD.EDU>
  14937. Subject:      What happend to "without warning" with copy?
  14938.  
  14939. The scriptable Finder has Copy as a replacement for the scripting addition
  14940. CopyFiles command, but there is no equivalent for "without warning".  The
  14941. move command has "replacing conflicts", but it doesn't work across volumes.
  14942. Any ideas?
  14943.  
  14944. -Erik
  14945. =========================================================================
  14946. Date:         Mon, 22 Aug 1994 08:54:45 -0800
  14947. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14948. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14949. From:         "Roy S. Rapoport" <rsr@BERKSYS.COM>
  14950. Subject:      Re: What happend to "without warning" with copy?
  14951.  
  14952. At  8:36 8/22/94 -0800, Erik Smith wrote:
  14953. >The scriptable Finder has Copy as a replacement for the scripting addition
  14954. >CopyFiles command, but there is no equivalent for "without warning".  The
  14955. >move command has "replacing conflicts", but it doesn't work across volumes.
  14956. >Any ideas?
  14957.  
  14958. Oh, so that was the problem.  I was wondering why 'with replacing' wasn't
  14959. working for me.
  14960.  
  14961. I've basically made a subroutine to copy all folders from one folder to another:
  14962.  
  14963. on CopyRepFolderContents(SrcFolder, DestFolder)
  14964.         tell application "Finder"
  14965.                 copy (get every folder of folder DestFolder) to TargFols
  14966.                 copy (get every folder of folder SrcFolder) to SrcFols
  14967.  
  14968.                 set TFT to {}
  14969.                 repeat with X in TargFols
  14970.                         set TFT to TFT & (name of X)
  14971.                 end repeat
  14972.                 set SFT to {}
  14973.                 repeat with X in SrcFols
  14974.                         set SFT to SFT & (name of X)
  14975.                 end repeat
  14976.  
  14977.                 repeat with Fol in TFT
  14978.                         if (SFT contains Fol) then
  14979.                                 delete folder (Fol as text) of folder
  14980.                                 (DestFolder as text)
  14981.                         end if
  14982.                 end repeat
  14983.                 empty the trash
  14984.  
  14985.                 duplicate every folder of folder SrcFolder to folder
  14986.                 DestFolder with replacing
  14987.         end tell
  14988. end CopyRepFolderContents
  14989.  
  14990. It's not elegant, but it works...
  14991.  
  14992. -roy
  14993. =========================================================================
  14994. Date:         Mon, 22 Aug 1994 10:51:46 -0500
  14995. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14996. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  14997. From:         Fred Terry <pfterry@LKS.CSI.COM>
  14998. Subject:      Re: AppleShare?
  14999. In-Reply-To:  Your message of "Mon, 22 Aug 94 11:30:53 CDT"
  15000.  
  15001. >Is AppleShare scriptable, or is there a way to send AppleScripts to
  15002. >AppleShare?
  15003.  
  15004. It isn't but you can do some Users and Groups manipulation with the Users and
  15005. Groups osax
  15006.  
  15007. ftp://gaea.kgs.ukans.edu/applescript/osaxen/users-and-groups-osax-11b.hqx
  15008.  
  15009. At one point, AppleShare Admin (from the company that makes Radar; sorry,
  15010. don't remember their name) was supposed to be released in a scriptable
  15011. version. The current version understands Apple events, but they aren'd
  15012. documented.
  15013.  
  15014. pf
  15015. =========================================================================
  15016. Date:         Mon, 22 Aug 1994 17:55:19 GMT
  15017. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15018. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15019. From:         Paul G Smith <paul@CTALK.EXNET.COM>
  15020. Organization: commstalk, & Full Moon Software Inc
  15021. Subject:      AETE for AppleSearch
  15022.  
  15023. A colleague has a need for an aete resource so he can directly script
  15024. AppleSearch (which, although it doesn't support the AE Object Model,
  15025. does have a comprehensive Apple Event API). Before we dive in and
  15026. create one from scratch, has anyone already done the deed?
  15027.  
  15028.  
  15029. best regards, Paul
  15030.  
  15031. +------------------------------------------------------------------+
  15032. | Paul G Smith, Full Moon Software        ||  UK ph: +44 727 844232
  15033. | PO Box 116, ST ALBANS, Herts AL1 2RL UK ||    fax: +44 727 856139
  15034. | & Full Moon Software, Inc               ||  US ph: 408 253 7199
  15035. | P O Box 700237, SAN JOSE, CA 95170 USA  ||    fax: 408 252 2378
  15036. =========================================================================
  15037. Date:         Mon, 22 Aug 1994 12:53:35 PDT
  15038. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15039. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15040. From:         Joe Scripter <MikeL@EWORLD.COM>
  15041. Subject:      *PlainTalk & AppleScript*
  15042.  
  15043. Well, I just installed PlainTalk on my PowerMac.
  15044. When I ask it what time it is, the computer says:
  15045. "Error in script, can't set minutes to" and then whatever time it is.
  15046. The script is as follows:
  15047.  
  15048. set d to current date
  15049. set x to (time of d)
  15050. set hour to (x div 3600)
  15051. set x to (x - (hour * 3600))
  15052. set mins to (x div 60)
  15053. set secs to (x - (mins * 60))
  15054. if (hour = 0) then
  15055. set hourstr to "midnight "
  15056. else
  15057. if (hour > 12) then
  15058. set hour to (hour - 12)
  15059. end if
  15060. set hourstr to (hour as string) & " "
  15061. end if
  15062. if mins = 0 then
  15063. if hour = 0
  15064. set minsstr to " "
  15065. else
  15066. set minsstr to "o'clock "
  15067. end if
  15068. else
  15069. set minsstr to (mins as string) & " "
  15070. end if
  15071. if secs = 0 then
  15072. set secsstr to "exactly"
  15073. else if secs = 1 then
  15074. set secsstr to "and " & secs as string & " second"
  15075. else
  15076. set secsstr to "and " & secs as string & " seconds"
  15077. end if
  15078. acknowledge saying (hourstr & minsstr & secsstr) caption (time string of d)
  15079.  
  15080. Yup, it's Applescript.  Can anyone HELP?
  15081. =========================================================================
  15082. Date:         Mon, 22 Aug 1994 12:52:17 PDT
  15083. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15084. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15085. From:         Joe Scripter <MikeL@EWORLD.COM>
  15086. Subject:      Re: Online&Shutdown
  15087.  
  15088. I would like my Mac to log on to AOL (& some other services, too), do a
  15089. flashsession, quit the application & shutdown the machine. Sounds like a
  15090. pretty common situation, but I have found no software that will do that. I've
  15091. given up on AOL adding a 'shutdown when finished' option on the flashsessions
  15092. screen. Currently I use QuicKeys to launch AOL five minutes before a
  15093. flashsession is scheduled, then to shutdown a half hour later. I often do
  15094. this after adding multiple files to the Download Manager, and am always
  15095. 'adjusting' how long to wait before shutting down. (I usually go right to bed
  15096. after stacking up email & files to send/receive) I also want this to happen
  15097. once a day, to get my email, etc. and never know how long to set the shutdown
  15098. for.
  15099.  
  15100. My Mac powers up (& down) several hard drives, CD-ROM Drives, etc., as part
  15101. of the startup/shutdown process and so I am interested in shutting the whole
  15102. thing down when it is no longer needed. I can also set the system up to power
  15103. on at a predetermined time.
  15104.  
  15105. Is this something I can accomplish with AppleScript? Specifically, the Script
  15106. needs to recognize that the download process has finished, either by waiting
  15107. for the 'Goodbye from AOL' window to be put up (or some other event,
  15108. depending on the service I'm connecting to), or sensing that the modem is no
  15109. longer communicating. Ideally, I guess I would want it to run several program
  15110. in sequence, run the appropriate email/flashsesion-equivalent routine for
  15111. each program, and after the last program is finished, shutdown the system.
  15112. (whew!)
  15113.  
  15114. If anybody knows of other (easier to use) software that would accomplish
  15115. this, I would be grateful for a point in the right direction, also.
  15116.  
  15117. Thanks,
  15118. MJL
  15119. =========================================================================
  15120. Date:         Mon, 22 Aug 1994 12:54:55 PDT
  15121. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15122. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15123. From:         Joe Scripter <MikeL@EWORLD.COM>
  15124. Subject:      AppleScript Objects
  15125.  
  15126. ===Question from someone=========
  15127.  
  15128.  
  15129. I'm trying to understand the extent to which AppleScript (AS) is truly
  15130. object-oriented, and would appreciate some information and/or guidance.
  15131.  
  15132. I've been reading about script objects in both Derek Schneider's The Tao of
  15133. AppleScript and Danny Goodman's The Complete AppleScript Handbook.  I'm also
  15134. familiar with (but admittedly not well-versed in) the Think Class Library
  15135. (TCL).  (I also do a lot of HyperTalk scripting.)
  15136.  
  15137. >From what I've learned, there seems to be some direct relationships between
  15138. the object-oriented programming (OOP) concepts in TCL and the
  15139. object-orientation of AS.  A "property" in AS corresponds to an object
  15140. "variable" in TCL; a "handler" in a script object in AS compares with an
  15141. object's "method" in TCL.  The "parent" property of an AS script object
  15142. defines a sub-class relationship between that script object and another, much
  15143. as a formatted "struct" declaration defines a sub-class relationship between
  15144. objects in (the C version of) the TCL.  AS provides for implicitly
  15145. "overriding" handlers by redefining them, while TCL includes the "override"
  15146. specification for the struct definition.
  15147.  
  15148. On the other hand, at least one important aspect of OOP seems to be missing
  15149. in AS.  In TCL, object "instances" are created when declared as variables of
  15150. that object type, so multiple objects can be created, each using that
  15151. object's type definition.  There doesn't seem to be any way to do this in AS.
  15152.  As I see it, the upshot is that in AS I must keep data structures separate
  15153. from script objects if I want to define multiple instances of a script
  15154. object.
  15155.  
  15156. I can deal with this, of course, but I wonder: am I missing something in AS
  15157. that would allow me (and perhaps others) to take a completely object-oriented
  15158. approach to AppleScript-ing?
  15159. =========================================================================
  15160. Date:         Mon, 22 Aug 1994 14:32:02 -0700
  15161. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15162. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15163. From:         Kevin Purcell <xenolith@HALCYON.COM>
  15164. Subject:      Re: AppleScript Objects
  15165.  
  15166. >I'm trying to understand the extent to which AppleScript (AS) is truly
  15167. >object-oriented, and would appreciate some information and/or guidance.
  15168. >
  15169. >I've been reading about script objects in both Derek Schneider's The Tao of
  15170. >AppleScript and Danny Goodman's The Complete AppleScript Handbook.
  15171.  
  15172. But not the AppleScript Language Guide? That has the best description.
  15173.  
  15174. [comparison of THINK C+- and AS deleted -- they're similar but not the same]
  15175.  
  15176. >On the other hand, at least one important aspect of OOP seems to be missing
  15177. >in AS.  In TCL, object "instances" are created when declared as variables of
  15178. >that object type, so multiple objects can be created, each using that
  15179. >object's type definition.  There doesn't seem to be any way to do this in AS.
  15180. > As I see it, the upshot is that in AS I must keep data structures separate
  15181. >from script objects if I want to define multiple instances of a script
  15182. >object.
  15183.  
  15184. No, this is not the case. In fact script objects are a good way of
  15185. partitioning data in your application.
  15186.  
  15187. To make multiple objects of the same type you need an object constructor
  15188. function. This is in the spirt of an exemplar based OOP language rather
  15189. than a class based one.
  15190.  
  15191. In exemplar object systems you one object (an "exemplar" or factory object)
  15192. and then clone it to make objects of the same type.
  15193.  
  15194. Message passing in these systems is generally done by delegation rather
  15195. than inheritence in which objects activly decide where to pass messages
  15196. they can't deal with. With this model a simple form of delegation gives you
  15197. identical functionality to inheritance (you always pass messsages you don't
  15198. understand to your parent). Delegation is more flexible, but can be
  15199. computationly more expensive.
  15200.  
  15201. Remember not all object systems are class based! Check out Dylan or CLOS,
  15202. or implementing objects in Scheme, or Object Logo or Self or ...
  15203.  
  15204. For (a trivial) example:
  15205.  
  15206. -- this function makes objects that keep track of how many times
  15207. -- they greet someone
  15208.  
  15209. on MakeGreeter()
  15210.         script aGreeter
  15211.                 property HowManyTimes : 0
  15212.  
  15213.                 set HowManyTimes to 0
  15214.  
  15215.                 to sayHello to someone
  15216.                         set HowManyTimes to pHowManyTimes + 1
  15217.                         display dialog "Hello " & someone
  15218.                         return pHowManyTimes
  15219.                 end sayHello
  15220.         end script
  15221.  
  15222.         return aGreeter
  15223. end MakeGreeter
  15224.  
  15225. set John to MakeGreeter()
  15226. set Fred to MakeGreeter()
  15227.  
  15228. tell John to sayHello to "Kevin"
  15229. tell Fred to sayHello to "Kevin"
  15230. tell John to sayHello to "Kevin"
  15231. get HowManyTimes of John
  15232.  
  15233.  
  15234. Kevin Purcell, N7WIM / G8UDP                    xenolith@halcyon.com
  15235. Seattle dBug Mac Developers SIG organiser       (206) 649-6489
  15236. =========================================================================
  15237. Date:         Mon, 22 Aug 1994 16:54:41 -0800
  15238. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15239. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15240. From:         Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU>
  15241. Subject:      Checking the status of the serial port
  15242.  
  15243. --part_AA7E88D1000243E000000002
  15244. Content-Type: Text/Plain; charset=US-ASCII
  15245. Content-Disposition: Inline
  15246.  
  15247. I'm working on a script to connect to a FirstClass server using SITcomm.
  15248. SITcomm will tell me if IT is accessing the connection (serial port) but it
  15249. doesn't look like I can see if anything else is using the modem. Is there a
  15250. way to do this since we also use FirstClass Client and probably MacPPP? Other
  15251. programs may also access the modem.
  15252.  
  15253. Thanks,
  15254.  
  15255. Greg Francis
  15256.  
  15257. --part_AA7E88D1000243E000000002
  15258. Content-Type: Text/Plain; charset=US-ASCII
  15259. Content-Disposition: Inline
  15260.  
  15261. --------------------------------------------------------------------------
  15262. Greg Francis                | STEP/Star Schools Project
  15263. Research and Development    | Educational Service District 101, Spokane WA
  15264. Technical Support Staff     | Bringing the best in K-12 distance education
  15265. gfrancis@esdtcom.wednet.edu | to remote schools across the United States.
  15266. --part_AA7E88D1000243E000000002--
  15267. =========================================================================
  15268. Date:         Mon, 22 Aug 1994 20:34:20 EDT
  15269. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15270. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15271. From:         INRA000 <INRA@MUSICB.MCGILL.CA>
  15272. Subject:      Re: Way to have background only script?
  15273. In-Reply-To:  In reply to your message of SAT 20 AUG 1994 09:54:06 EDT
  15274.  
  15275. >I want to have a script application to be "faceless" i.e. not show up in
  15276. >the application menu.  Is there a way to do this.   How about a way for the
  15277. >script itself to do it using the scriptable Finder ?
  15278.  
  15279.     Script Hider, winner of Runner-Up as Best Scripting Hack in the
  15280. Everyday AppleScript contest, does this. It's currently just a hack,
  15281. really, but sometime when I'm less tied up with other (More fiscally
  15282. interesting -- Script Hider is freeware) projects, I'll get around
  15283. to polishing it some more.
  15284.  
  15285.     Script Hider is available on Gaea.
  15286.  
  15287.     Cheers,
  15288.  
  15289.     Mark Aiken
  15290.     inra@musicb.mcgill.ca
  15291. =========================================================================
  15292. Date:         Mon, 22 Aug 1994 23:41:04 EDT
  15293. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15294. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15295. From:         Joel Smith <JoelS7@AOL.COM>
  15296. Subject:      FMPro Field listing?
  15297.  
  15298. How can I get a complete field list for any particular database. All I can
  15299. get at this point is a list of the fields on the active layout. Am I missing
  15300. something really obvious? This should be simple, but I've tried several
  15301. things and nothing so far. Is this a FileMaker Pro feature?
  15302.  
  15303. I can get the number of fields in a database, but I can only get a list of
  15304. field names for the current layout. I can only get names by number for those
  15305. fields on the layout (or so it seems). Any suggestions?  Something more
  15306. elegant than looping through all layouts would be good. Thanks
  15307.  
  15308. Joel Smith
  15309. =========================================================================
  15310. Date:         Mon, 22 Aug 1994 21:28:20 MST
  15311. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15312. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15313. From:         103t_english@WEST.CSCWC.PIMA.EDU
  15314. Subject:      Re: MACSCRPT Digest - 21 Aug 1994 to 22 Aug 1994
  15315.  
  15316. Lawson D. English 103T_ENGLISH@west.cscwc.pima.edu
  15317.  
  15318. -INSERT INFORMATIVE AND WITTY MESSAGE HERE-
  15319.  
  15320. West Campus Internet Class of 1994
  15321. =========================================================================
  15322. Date:         Mon, 22 Aug 1994 21:37:00 MST
  15323. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15324. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15325. From:         103t_english@WEST.CSCWC.PIMA.EDU
  15326. Subject:      Attachability & Tinkerability...
  15327.  
  15328. Where can I find information about the above topics and how to implement them
  15329. in an application?
  15330.  
  15331. And...
  15332.  
  15333. When is comp.sys.mac.applescript coming?
  15334.  
  15335. Lawson D. English 103T_ENGLISH@west.cscwc.pima.edu
  15336.  
  15337. -INSERT INFORMATIVE AND WITTY MESSAGE HERE-
  15338.  
  15339. West Campus Internet Class of 1994
  15340. =========================================================================
  15341. Date:         Tue, 23 Aug 1994 07:51:15 GMT
  15342. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15343. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15344. From:         Paul G Smith <paul@CTALK.EXNET.COM>
  15345. Organization: commstalk, & Full Moon Software Inc
  15346. Subject:      Re: Attachability & Tinkerability...
  15347.  
  15348. In Regards to your letter <199408230526.AA25397@exnet.com>:
  15349. >
  15350. > Where can I find information about the above topics and how to implement them
  15351. > in an application?
  15352. >
  15353.  
  15354. "Inside Macintosh:Interapplication Communication" gives some but not
  15355. all of the story. Check out issues #18 and #19 of Apple's "develop"
  15356. magazine for a couple of articles with sample code. Also, if you know
  15357. someone who has tapes of this year's WWDC, take a look at Lee Buck's
  15358. talk on the same subject (was on day 1 of the conference).
  15359.  
  15360.  
  15361. best regards, Paul
  15362.  
  15363. +------------------------------------------------------------------+
  15364. | Paul G Smith, Full Moon Software        ||  UK ph: +44 727 844232
  15365. | PO Box 116, ST ALBANS, Herts AL1 2RL UK ||    fax: +44 727 856139
  15366. | & Full Moon Software, Inc               ||  US ph: 408 253 7199
  15367. | P O Box 700237, SAN JOSE, CA 95170 USA  ||    fax: 408 252 2378
  15368. =========================================================================
  15369. Date:         Tue, 23 Aug 1994 00:40:04 -0700
  15370. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15371. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15372. From:         Jon Pugh <jonpugh@NETCOM.COM>
  15373. Subject:      Re: Alternative Script Editor needed, do script, maximum length
  15374.  
  15375. Paul G Smith <paul@CTALK.EXNET.COM> wrote:
  15376. >
  15377. >Jon Pugh <jonpugh@netcom.com> wrote:
  15378. >> ScriptServer is shareware, so it's almost free.  ;)
  15379. >
  15380. >But MPW isn't free or share-ware.  Or is it ?
  15381.  
  15382. Actually, ScriptServer doesn't need MPW.  MPW just happens to be a capable
  15383. editor which I use.  You could actually write a script which pieces
  15384. together regular AppleScripts, written in the Script Editor, which does the
  15385. #include trick and then feeds the mess to ScriptServer.  You might be able
  15386. to use some of the SSCompile MPW script as a beginning, although there will
  15387. be some significant differences.  ;)  You could run the script from OSA
  15388. Menu in the Script Editor.  It would be a custom compile and/or run
  15389. command.  There are certain hurdles to be overcome, but that would solve
  15390. the lad's problem without any additional cost.
  15391.  
  15392. This sounds like a good idea too.  Perhaps I'll get around to it, although
  15393. I would prefer to improve someone else's first pass.  Consider it an
  15394. exercise for the readers.  ;)
  15395.  
  15396. Jon
  15397. =========================================================================
  15398. Date:         Tue, 23 Aug 1994 00:40:09 -0700
  15399. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15400. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15401. From:         Jon Pugh <jonpugh@NETCOM.COM>
  15402. Subject:      Re: Any way to "compile" a script - SOLVED!
  15403.  
  15404. John Schettino <js12@GTE.COM> wrote:
  15405. >
  15406. >A person on AOL pointed out that jons commands 1.2 has a "run script"
  15407. >command that is incompatible with AS 1.1. Version 1.3 fixes that problem. I
  15408. >removed the 1.2 osax and now everything works fine!
  15409.  
  15410. Nitpicking details:  Jon's Commands 1.2 has an FSSpec <-> String coercion
  15411. which revealed a bug in the Apple Run Script osax (written by a friend of
  15412. mine).  He acknowledges the bug as his fault.  In Jon's Commands 1.3 I
  15413. worked around his bug since I could rev mine before he could rev his Apple
  15414. endorsed osax.  Now we both work.  ;)
  15415.  
  15416. Jon
  15417. =========================================================================
  15418. Date:         Tue, 23 Aug 1994 00:40:11 -0700
  15419. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15420. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15421. From:         Jon Pugh <jonpugh@NETCOM.COM>
  15422. Subject:      Re: AppleScript Objects
  15423.  
  15424. Kevin Purcell <xenolith@HALCYON.COM>
  15425. >
  15426. >>I'm trying to understand the extent to which AppleScript (AS) is truly
  15427. >>object-oriented, and would appreciate some information and/or guidance.
  15428.  
  15429. Kevin does an awesome job of explaining this and provides an excellent
  15430. example (except for the typos ;).  However, he missed one thing in his
  15431. example, and that is the inheritence.
  15432.  
  15433. A more complete example follows.  An important thing to note is that
  15434. Kevin's makeNewGreeter function can be replaced with a reference to a
  15435. script object and then the subclasses will have the same parent.  This
  15436. makes the scope of newGreeter quite important.
  15437.  
  15438. Jon
  15439.  
  15440.  
  15441. -- these objects keep track of how many times they greet someone
  15442.  
  15443. on makeNewGreeter()
  15444.         script newGreeter
  15445.                 property HowManyTimes : 0
  15446.  
  15447.                 set HowManyTimes to 0
  15448.  
  15449.                 to sayHello to someone
  15450.                         set HowManyTimes to HowManyTimes + 1
  15451.                         display dialog "Hello " & someone
  15452.                         return HowManyTimes
  15453.                 end sayHello
  15454.         end script
  15455.  
  15456.         return newGreeter
  15457. end makeNewGreeter
  15458.  
  15459. script DrGreeter
  15460.         property parent : makeNewGreeter()
  15461.  
  15462.         to sayHello to someone
  15463.                 continue sayHello to ("Dr. " & someone)
  15464.         end sayHello
  15465. end script
  15466.  
  15467. script ButtFaceGreeter
  15468.         property parent : makeNewGreeter()
  15469.  
  15470.         to sayHello to someone
  15471.                 continue sayHello to ("ButtFace " & someone)
  15472.         end sayHello
  15473. end script
  15474.  
  15475. set John to DrGreeter
  15476. set Fred to ButtFaceGreeter
  15477.  
  15478. tell John to sayHello to "Kevin"
  15479. tell Fred to sayHello to "Kevin"
  15480. tell John to sayHello to "Kevin"
  15481. get HowManyTimes of John
  15482. =========================================================================
  15483. Date:         Tue, 23 Aug 1994 01:28:43 PDT
  15484. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15485. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15486. From:         "Angel M. Mayorga" <Angel.Mayorga@STANFORD.BITNET>
  15487. Subject:      Automatic Reply from EMS
  15488.  
  15489. Folks,
  15490.  
  15491. I am on vacation until Tuesday, September 6th.  For anything needing
  15492. immediate attention, please phone Nona Kuhlman, 723-2935, or leave
  15493. her e-mail at AS.NON@FORSYTHE.
  15494.  
  15495. Angel
  15496. =========================================================================
  15497. Date:         Tue, 23 Aug 1994 07:48:59 -0700
  15498. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15499. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15500. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  15501. Subject:      Re: Any way to "compile" a script - SOLVED!
  15502.  
  15503. >Jon Pugh wrote:
  15504. >Nitpicking details:  Jon's Commands 1.2 has an FSSpec <-> String coercion
  15505. >which revealed a bug in the Apple Run Script osax (written by a friend of
  15506. >mine).  He acknowledges the bug as his fault.  In Jon's Commands 1.3 I
  15507. >worked around his bug since I could rev mine before he could rev his Apple
  15508. >endorsed osax.  Now we both work.  ;)
  15509.  
  15510. Er...I think Jon means Jon's Commands 1.1.2 (vice 1.2) with a coercion
  15511. which caused problems in Apple's Run Script, and versions 1.1.3 (vice 1.3)
  15512. with the work around.
  15513.  
  15514.    --John
  15515.  
  15516. --
  15517. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  15518. When was the last time you checked out the ceiling tiles in a building you
  15519. were in?
  15520. =========================================================================
  15521. Date:         Tue, 23 Aug 1994 11:19:08 EDT
  15522. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15523. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15524. From:         Danny Goodman <DGoodman@AOL.COM>
  15525. Subject:      Re: Online&Shutdown
  15526.  
  15527. >I would like my Mac to log on to AOL (& some other services, too), do a
  15528. >flashsession, quit the application & shutdown the machine.
  15529.  
  15530. None of the AOL software versions I have is scriptable.  Perhaps the new 2.5
  15531. is, but I haven't downloaded it yet.  My prediction, however, is that it is
  15532. not scriptable either.
  15533.  
  15534. Danny Goodman
  15535. =========================================================================
  15536. Date:         Tue, 23 Aug 1994 12:34:00 EDT
  15537. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15538. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15539. From:         Mark Richman <mrichman@CMI.ON.CA>
  15540. Subject:      Script AOL? (Was-Re: Online&Shutdown)
  15541.  
  15542. >None of the AOL software versions I have is scriptable.  Perhaps the new 2.5
  15543. >is, but I haven't downloaded it yet.  My prediction, however, is that it is
  15544. >not scriptable either.
  15545.  
  15546. For what it's worth I checked the beta 2.5 AOL software I have, and it is
  15547. not scriptable.
  15548.  
  15549. ------------
  15550. >>I would like my Mac to log on to AOL (& some other services, too), do a
  15551. >>flashsession, quit the application & shutdown the machine.
  15552. >
  15553.  
  15554. However, some Macs are able to use a control panel called Auto Power
  15555. On/Off. It allows you to specify days and time for the Mac to TURN ITSELF
  15556. on and off. It's actually really cool to see your Mac turn itself on!
  15557.  
  15558. Anyhow, the Mac I know can use it are the IIsi, the Q800, 840av, 7100 and
  15559. 8100 and the new Quadra/LC 630. There may be others but I'm not sure. I
  15560. think any newer Mac that has keyboard power on/off should work. The fact
  15561. that the IIsi works is a bit of a fluke I think.
  15562.  
  15563. Mark Richman
  15564. =========================================================================
  15565. Date:         Tue, 23 Aug 1994 12:36:41 -0500
  15566. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15567. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15568. From:         Nathaniel Comfort at Cold Spring Harbor Lab <comfort@CSHL.ORG>
  15569. Subject:      Sybase OSAX?
  15570.  
  15571. I have a FileMaker Pro database on my computer and access to a large Sybase
  15572. (SQL) contact db on our Sun network. FMPro says to make SQL queries to a
  15573. Unix db like Oracle or Sybase you need to buy a third-party program such as
  15574. GQL. But Sybase used to support a thing called "dblib" that was a set of
  15575. XFCNs so you could write Hypercard stacks that would make SQL queries. They
  15576. apparently believe Hypercard is obsolete and are now supporting the
  15577. "Programmer's Workbench." But this Hypercard stuff got me thinking...
  15578.  
  15579. Has anyone seen/written an OSAX that allows SQL queries? Or, not quite as
  15580. elegantly, is there any way to use the Hypercard XFCN directly in an
  15581. AppleScript? My current kludge is to send a script from FMPro telling
  15582. Hypercard to get the data and put it in the appropriate fields. I'm a bit
  15583. in the dark about all this, so I'd appreciate a greater than the usual
  15584. (pretty high) level of clarity from anyone who might nibble on it.
  15585.  
  15586. Thanks,
  15587. Nathaniel
  15588.  
  15589.  
  15590.         /____ /   Nathaniel C. Comfort
  15591.         |___ /    Science Writer
  15592.          \_/
  15593.          /_\      Cold Spring Harbor Laboratory
  15594.         |____\    1 Bungtown Rd.
  15595.         \_____\   Cold Spring Harbor, NY  11724
  15596.          \____|
  15597.            \_/    voice: (516) 367-8308
  15598.            /_\    fax: (516) 367-6814
  15599.          /____|   internet: comfort@cshl.org
  15600.         /_____/
  15601. =========================================================================
  15602. Date:         Tue, 23 Aug 1994 12:39:34 -0400
  15603. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15604. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15605. From:         John Schettino <js12@GTE.COM>
  15606. Subject:      Re: Online&Shutdown
  15607.  
  15608. >>I would like my Mac to log on to AOL (& some other services, too), do a
  15609. >>flashsession, quit the application & shutdown the machine.
  15610. >
  15611. >None of the AOL software versions I have is scriptable.  Perhaps the new 2.5
  15612. >is, but I haven't downloaded it yet.  My prediction, however, is that it is
  15613. >not scriptable either.
  15614. >
  15615. >Danny Goodman
  15616.  
  15617. Nope" Version 2.5f5 beta, not scriptable. You can use something like
  15618. quickkeys or KeyQuencer (shareware). Here's some of the KQ readme file
  15619. [note: I've not yet used it, but it looks interesting!]
  15620.  
  15621. KeyQuencer introduction and installation notes
  15622.  
  15623. * SHAREWARE - $10 CASH - See details in the control panel's online
  15624. documentation.
  15625.  
  15626. * KeyQuencer is a powerful and solid macro engine designed to use very
  15627. little memory; it can perform complex tasks that are invoked by a single
  15628. keystroke. KeyQuencer uses a very simple scripting approach and can be
  15629. extended through external extensions, which are the basic building blocks
  15630. that make up a full macro.
  15631.  
  15632. * The bundled extensions provide lots of power and functionality: they can
  15633. type some text for you, capture a screen image, open a file or a folder,
  15634. execute a menu command, choose an item from a pop up menu, type a key
  15635. combination, click on a button or anywhere else, change the number of
  15636. colors on your screen, dial a phone number, change the speaker's volume,
  15637. switch to another application, move the front window to a convenient place,
  15638. show the current time and date, quit one or more applications, manage
  15639. multiple clipboards in any application, change the clipboard's contents,
  15640. toggle the balloon help, display a message, play a sound, redraw a window
  15641. or the whole screen, put a PowerBook to sleep, find the coordinates of a
  15642. screen location, invoke the low-level debugger and much more.
  15643.  
  15644. - john
  15645.  
  15646. -----------------------------------------
  15647. js12@gte.com             GTE Laboratories
  15648. John Schettino                Waltham, MA
  15649. =========================================================================
  15650. Date:         Tue, 23 Aug 1994 09:44:40 -0700
  15651. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15652. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15653. From:         Derrick Schneider <derrick@NETCOM.COM>
  15654. Subject:      Re: AppleScript Objects
  15655. In-Reply-To:  <199408230242.TAA22678@mail2.netcom.com>
  15656.  
  15657. On Mon, 22 Aug 1994, Joe Scripter wrote:
  15658.  
  15659. > >From what I've learned, there seems to be some direct relationships between
  15660. > the object-oriented programming (OOP) concepts in TCL and the
  15661. > object-orientation of AS.  A "property" in AS corresponds to an object
  15662. > "variable" in TCL; a "handler" in a script object in AS compares with an
  15663. > object's "method" in TCL.  The "parent" property of an AS script object
  15664. > defines a sub-class relationship between that script object and another, much
  15665. > as a formatted "struct" declaration defines a sub-class relationship between
  15666. > objects in (the C version of) the TCL.  AS provides for implicitly
  15667. > "overriding" handlers by redefining them, while TCL includes the "override"
  15668. > specification for the struct definition.
  15669. >
  15670. > On the other hand, at least one important aspect of OOP seems to be missing
  15671. > in AS.  In TCL, object "instances" are created when declared as variables of
  15672. > that object type, so multiple objects can be created, each using that
  15673. > object's type definition.  There doesn't seem to be any way to do this in AS.
  15674. >  As I see it, the upshot is that in AS I must keep data structures separate
  15675. > from script objects if I want to define multiple instances of a script
  15676. > object.
  15677.  
  15678. Actually, I've sort of been playing with that idea recently. Here's how I
  15679. see it. You can create a script file which contains the object
  15680. definition, as described in the two books. To make your instance, you
  15681. would then do something like this:
  15682.  
  15683. set instance1 to (load script <the file>)
  15684. set instance2 to (load script <the file>)
  15685.  
  15686. Where <the file> is the path to the file containing the script. Then each
  15687. of the two variables will be a separate instance of that script object.
  15688. I've only begun playing with this, so I'm not 100% sure that that will
  15689. work. I guess it depends on how AS does this kind of thing.
  15690.  
  15691. BTW, I believe you can have a minimal child-parent relationship. I seem
  15692. to remember something about a parent property of a script object. I think
  15693. you give it the name of another script object, and the new object
  15694. inherits everything from it. You can then add, and possibly override your
  15695. own methods.
  15696.  
  15697. Anyway, hope that helps.
  15698. Derrick
  15699. =========================================================================
  15700. Date:         Tue, 23 Aug 1994 12:45:55 EST
  15701. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15702. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15703. From:         Kim-son Tran <ktran@CC.ATINC.COM>
  15704. Subject:      Re: FMPro Field listing?
  15705.  
  15706. Joel Smith wrote:
  15707.  
  15708. >How can I get a complete field list for any particular database. All I can
  15709. >get at this point is a list of the fields on the active layout. Am I missing
  15710. >something really obvious? This should be simple, but I've tried several
  15711. >things and nothing so far. Is this a FileMaker Pro feature?
  15712.  
  15713. In FMPro, name is a property of field(s) which is in turn an element of layout,
  15714. therefore, try this:
  15715.  
  15716. tell application "FileMaker Pro"
  15717.     Open alias "Macintosh HD:My Database File"
  15718.     tell Database "My Database File"
  15719.         set fieldList to Name of every Field of every Layout
  15720.     end tell
  15721. end tell
  15722.  
  15723. fieldList
  15724. =========================================================================
  15725. Date:         Tue, 23 Aug 1994 09:57:22 -0700
  15726. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15727. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15728. From:         Derrick Schneider <derrick@NETCOM.COM>
  15729. Subject:      Re: AppleScript Objects
  15730. In-Reply-To:  <199408230847.BAA06519@netcom2.netcom.com>
  15731.  
  15732. Maybe I should play with AS objects some more...
  15733.  
  15734. Derrick
  15735. =========================================================================
  15736. Date:         Tue, 23 Aug 1994 12:18:21 -0600
  15737. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15738. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15739. From:         Frank Concannon <frank-concannon@UOKHSC.EDU>
  15740. Subject:      Re: Script AOL? (Was-Re: Online&Shutdown)
  15741.  
  15742. >>None of the AOL software versions I have is scriptable.  Perhaps the new 2.5
  15743. >>is, but I haven't downloaded it yet.  My prediction, however, is that it is
  15744. >>not scriptable either.
  15745. >
  15746. >For what it's worth I checked the beta 2.5 AOL software I have, and it is
  15747. >not scriptable.
  15748. >
  15749. >------------
  15750. >>>I would like my Mac to log on to AOL (& some other services, too), do a
  15751. >>>flashsession, quit the application & shutdown the machine.
  15752. >>
  15753. >
  15754. >However, some Macs are able to use a control panel called Auto Power
  15755. >On/Off. It allows you to specify days and time for the Mac to TURN ITSELF
  15756. >on and off. It's actually really cool to see your Mac turn itself on!
  15757. >
  15758. >Anyhow, the Mac I know can use it are the IIsi, the Q800, 840av, 7100 and
  15759. >8100 and the new Quadra/LC 630. There may be others but I'm not sure. I
  15760. >think any newer Mac that has keyboard power on/off should work. The fact
  15761. >that the IIsi works is a bit of a fluke I think.
  15762. >
  15763. >Mark Richman
  15764.  
  15765. Hi guys
  15766.  
  15767. I can't speak for AOL but as for timed shutdowns etc you should give "Cron"
  15768. a test drive. (Information at the end of this post.) This could arguably be
  15769. the best addon for the Mac I have ever located :-)
  15770.  
  15771. Amongst other things (auto powerdowns/restarts included) I use it to
  15772. autolaunch script that have been saved as apps. With it I have been able to
  15773. accomplish all manner of wonderful things.
  15774.  
  15775. If you need further Info e-mail for a chat!
  15776.  
  15777. Frank C.
  15778. R&E
  15779.  
  15780. Oh and the "AutoPower On/Off" CP works with Quadra 900 as well.
  15781.  
  15782.  
  15783.  
  15784. "
  15785. **************************************************
  15786. Cron
  15787. version 1.0d16
  15788. by Chris W. Johnson <chrisj@mail.utexas.edu>
  15789.  
  15790. Chris W. Johnson
  15791. 4505-B Avenue H
  15792. Austin, TX  78751
  15793.  
  15794. FINDING THE LATEST VERSION
  15795. **************************************************
  15796.  
  15797. You can find the latest version through the web page whose URL is listed
  15798. above, or you can just do an anonymous FTP to emx.cc.utexas.edu and look
  15799. in the pub/gatekeeper directory (yes, I'm the same guy who wrote the
  15800. Gatekeeper anti-virus system).
  15801. "
  15802. =========================================================================
  15803. Date:         Tue, 23 Aug 1994 14:31:22 -0500
  15804. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15805. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15806. From:         Scott Andersen <Scott_O._Andersen@POL.COM>
  15807. Organization: Productivity OnLine   513-333-3111
  15808. Subject:      Re: AppleShare?
  15809.  
  15810. That program, from Sonic Systems is Server Sentry.  I have scripted to it
  15811. with Frontier, but have failed so far with Applescript, (only that Frontier
  15812. drives Quickeys and then Server Sentry.)
  15813.  
  15814.  
  15815. Scott
  15816. =========================================================================
  15817. Date:         Tue, 23 Aug 1994 11:42:13 -0800
  15818. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15819. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15820. From:         Erik Smith <ersmith@UCSD.EDU>
  15821. Subject:      Here is a nested folder maker
  15822.  
  15823. As part of my goal of using AppleScript as a software installer, I have
  15824. created this script which can be used to create a folder tree from a path
  15825. string.  Just having make is not enough if you don't know if the parent
  15826. folders exist.  I found it easiest to use recursion. If you know of a
  15827. better way to do this, please let me know.
  15828.  
  15829. Here it is:
  15830.  
  15831. on fmake(path)
  15832.         -- takes a path string and creates folders
  15833.         -- all along the path as necessary
  15834.         -- syntax: fmake("pathstring") of me
  15835.  -- Example fmake("Speedy:one:two:three")
  15836.  
  15837.         set textItemDelimiters to AppleScript's text item delimiters
  15838.         set AppleScript's text item delimiters to {":"}
  15839.         set rvalue to fmake2(path) of me
  15840.         set AppleScript's text item delimiters to textItemDelimiters
  15841.         return rvalue
  15842. end fmake
  15843.  
  15844.  
  15845. on fmake2(path)
  15846.         -- recursive function which starts of the end of the
  15847.         --path and works backwards until an existing path is found
  15848.         tell application "Finder"
  15849.                 if path = "" then
  15850.                         return false
  15851.                 else
  15852.                         if exists container path then
  15853.                                 return true
  15854.                         else
  15855.                                 set path2 to text from text item 1 to text item
  15856. -2 of path
  15857.                                 if fmake2(path2) of me then
  15858.                                         make new folder at container path2 with
  15859. properties {name:last text
  15860. item of path}
  15861.                                         return true
  15862.                                 else
  15863.                                         return false
  15864.                                 end if
  15865.                         end if
  15866.                 end if
  15867.         end tell
  15868. end fmake2
  15869.  
  15870.  
  15871.  
  15872.  
  15873. ______________________________________________________________________
  15874. Erik Smith                   | ersmith@ucsd.edu  Internet
  15875. Computing Services Director  | (619) 534-1989    office
  15876.                              | (619) 534-3939    fax
  15877. ______________________________________________________________________
  15878. Graduate School of International Relations and Pacific Studies (IR/PS)
  15879. University of California, San Diego (UCSD)
  15880. ______________________________________________________________________
  15881. =========================================================================
  15882. Date:         Tue, 23 Aug 1994 13:38:07 -0700
  15883. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15884. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15885. From:         Kevin Purcell <xenolith@HALCYON.COM>
  15886. Subject:      Re: AppleScript Objects
  15887.  
  15888. >Maybe I should play with AS objects some more...
  15889. >
  15890. >Derrick
  15891.  
  15892. You should -- they're the most fun things in AS.
  15893.  
  15894. Shame they didn't include elements. You'd be able to build full grown
  15895. scriptable apps in AS.
  15896.  
  15897. Maybe in AS 2.0
  15898.  
  15899. Have fun!
  15900.  
  15901. Kevin Purcell, N7WIM / G8UDP                    xenolith@halcyon.com
  15902. Seattle dBug Mac Developers SIG organiser       (206) 649-6489
  15903. =========================================================================
  15904. Date:         Tue, 23 Aug 1994 15:39:09 -0700
  15905. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15906. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15907. From:         Tom Cloney <muse@VIADOC.COM>
  15908. Subject:      Re: text processing engines
  15909.  
  15910. >I want to do some serious text processing--namely, scripts to do reference
  15911. >threaded digestification of mailing list mail.  I'm considering BBEdit as
  15912. >the engine, but I wondered if anyone had other suggestions?
  15913.  
  15914. Check out Tcl (Tool Control Language, pronounced "tickle"), a very powerful
  15915. environment for string and text manipulation that includes a regular
  15916. expression parser (sort of grep with knobs on). It's essentially a 4GL
  15917. optimized for string processing and found on UNIX and IBM systems, as well
  15918. as Mac. Judging purely from USENET traffic, Tcl is currently the most
  15919. popular string processing environment. You can do a lot besides string
  15920. processing with it, too, and it's extensible in 3GLs like C.
  15921.  
  15922. A Tcl engine is available embedded in Pete Keleher's excellent Alpha text
  15923. processor (a bit like BBEdit, but with the considerable advantage of Tcl).
  15924. Version 5.85 should now be at cs.rice.edu under public/Alpha. In addition
  15925. to straight Tcl processing, you can put up decision and list dialogs and
  15926. many other things. The integrated text editor makes for a great development
  15927. environment. Support for Alpha has been excellent for several years --
  15928. better than most commercial applications.
  15929.  
  15930. Tim Endre's Tcl engine (which I believe is the one at the core of Alpha) is
  15931. also embedded in the applications Tickle (currently, we've got Tickle
  15932. 5.0v1) and Transit, which can produce droplets. Check out the
  15933. pub/vendor/ice directory on ftp.msen.com.
  15934.  
  15935. All three of these applications are AppleScriptable to some extent (at
  15936. least to the extent of being able to be told what Tcl script to execute, or
  15937. to generate AppleEvents themselves). We've found that AppleScript,
  15938. QuicKeys, and the Tcl apps provide a very powerful "glue" system for
  15939. working with text.
  15940.  
  15941. An example of a parsing application similar to your proposed mail system is
  15942. the image processing part of our database publishing system. We use Tcl, in
  15943. the form of the Alpha editor, to analyse EPS image files -- extracting
  15944. information about file image dimensions, pixel depth, date, and so on from
  15945. the PostScript, doing a bit of figuring, and appending the results as a
  15946. tab-delimited record for import to ORACLE or 4thDimension. It's quite
  15947. similar to processing mail headers.
  15948.  
  15949. Another scriptable text parser is MacPerl, which embeds the Perl parser
  15950. popular on UNIX systems. O'Reilly & Associates has several books on Perl.
  15951. We're using version 4.1.2. There should be a copy floating around in the
  15952. /software/mac directory on nic.switch.ch.
  15953.  
  15954. You might also consider the new (and controversial) object-oriented string
  15955. processing language Python. Check out comp.lang.python and the ftp site
  15956. ftp.cwi.nl.
  15957.  
  15958. The Icon language is reputed to be good for string processing. I haven't
  15959. used it in years, so my memory isn't very good about it. A Mac version is
  15960. ftp-able somewhere.
  15961.  
  15962. If your application leans more toward complex decision making, rather than
  15963. straightforward parsing, you might consider one of the Scheme variants,
  15964. such as Gambit Scheme. This gives you the advantage of programming in a
  15965. high-level language (essentially a Lisp variant) -- and you could apply
  15966. typical AI algorithms.  I don't know if the latest versions support
  15967. AppleEvents. You could also use the full-bore CLOS, but that's a lot of
  15968. overhead for a simple parser.
  15969.  
  15970. An (expensive) option would be Prograph CPX, a high-level visual
  15971. object-oriented development environment. The built-in string processing
  15972. stuff isn't very robust, but it's extensible in either Prograph or a 3GL
  15973. like C, and the debugging facilities are beyond compare. It has an
  15974. interpreter and a compiler that can generate stand-alone double-clickable
  15975. apps. It can send and receive AppleEvents. Windows and UNIX versions are
  15976. planned. It'll set you back around $1500, sigh.
  15977.  
  15978. Finally, you might snoop around for regular expression processing modules
  15979. for Think C, CodeWarrior, or MPW C. The programming environment is
  15980. considerably lower-level than any of the options above, but performance
  15981. would be very good. MPW has some parsing features of its own. You could
  15982. probably arrange to use Tim Endre's Tcl engine in your own application.
  15983.  
  15984. The idea in pretty much all of these cases is to use somebody else's
  15985. regular expression parser, rather than re-inventing grep/awk etc.
  15986.  
  15987. -- Tom
  15988.  
  15989. -------------------------------
  15990. Tom Cloney
  15991. Viadoc
  15992. muse@viadoc.com  muse@csn.org (303) 449-9993  Fax: (303) 546-6349
  15993.  
  15994. You'll have to have it all pulled out after the Savoy Truffle.
  15995. ================
  15996. =========================================================================
  15997. Date:         Tue, 23 Aug 1994 14:41:12 -0800
  15998. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  15999. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16000. From:         Peter Speck <speck@INTERVAL.COM>
  16001. Subject:      Hwo to: find container
  16002.  
  16003. I'm sissing documentation, so please help me.
  16004.  
  16005. If I do:
  16006.   set myRef to a reference to character 1 of word 1 of window 1
  16007. then I get
  16008.   character 1 of word 1 of window 1 of application "ScriptAble..."
  16009.  
  16010. I would like to back up, that is, get the container of this character, so I
  16011. have just:
  16012.   word 1 of window 1 of application "ScriptAble..."
  16013.  
  16014. What is the expression for this?
  16015.  
  16016.  
  16017. I have a system where (generic) objects can be container in other objects
  16018. (of the same type). It is somewhat MUD like.
  16019. What is the expression for moving an object into another object,
  16020. e.g. move physobject "Pretender" into physobject "The hall"????
  16021.  
  16022. I can get this to work with the PowerPlant framework.
  16023.  
  16024. ---
  16025. Peter Speck
  16026.                              (And it was eleven o'clock
  16027.                               which was time for a little something)
  16028. =========================================================================
  16029. Date:         Tue, 23 Aug 1994 17:35:58 -0400
  16030. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16031. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16032. From:         Abner Dumoff <abbyd@FREENET.SCRI.FSU.EDU>
  16033. Subject:      Re: What is the gaea ftp site again?
  16034. In-Reply-To:  <199408211925.AA23353@freenet2.scri.fsu.edu>
  16035.  
  16036. On Sun, 21 Aug 1994, anthony brown wrote:
  16037.  
  16038. > What is the of the gaea ftp site, either with the pathname or the ip address?
  16039. >
  16040. > I erased the message with the site name by accident
  16041. >
  16042. > Anthony
  16043. >
  16044.  
  16045. gaea.kgs.ukans.edu
  16046.  
  16047. -AbbyD
  16048. =========================================================================
  16049. Date:         Tue, 23 Aug 1994 22:45:17 +0100
  16050. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16051. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16052. From:         Chris Esther <chris@RELEASE.DEMON.CO.UK>
  16053. Subject:      Re: Sybase OSAX?
  16054.  
  16055. >Has anyone seen/written an OSAX that allows SQL queries? Or, not quite as
  16056. >elegantly, is there any way to use the Hypercard XFCN directly in an
  16057. >AppleScript? My current kludge is to send a script from FMPro telling
  16058. >Hypercard to get the data and put it in the appropriate fields.
  16059.  
  16060. There's a couple of products that fit the bill, DataScript -
  16061. which is a AppleScript bridge application for retrieving data
  16062. from SQL based database systems. $249 for the Sybase version available from
  16063. APDA (716) 871 6555 or direct from the publishers General Knowledge in the
  16064.  UK on +44 (0)202 746 026.
  16065.  
  16066. The Database Scripting Kit is an OSAX, available from Graphical
  16067. Business Interfaces  (219) 253-8623, AppleLink  D2193 who have some
  16068. interesting sounding
  16069. AOCE/Database products on the horizon. It, like DataScript, supports a
  16070. number of DBMS -
  16071. but I'm not sure whether it supports Sybase directly. DataScript sells on a
  16072. system basis whilst I think GBI have just decided to sell the Database
  16073. Scripting Kit as one product that will support all systems.
  16074.  
  16075. Don't have any real experience of either and don't have current pricing
  16076. for the OSAX solution, but hope this helps.
  16077.  
  16078.  
  16079. Chris Esther
  16080. Release Commuinications
  16081. London, UK
  16082. =========================================================================
  16083. Date:         Tue, 23 Aug 1994 15:18:11 -0700
  16084. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16085. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16086. From:         Kevin Purcell <xenolith@HALCYON.COM>
  16087. Subject:      Re: Attachability & Tinkerability...
  16088.  
  16089. >In Regards to your letter <199408230526.AA25397@exnet.com>:
  16090. >>
  16091. >> Where can I find information about the above topics and how to implement them
  16092. >> in an application?
  16093. >>
  16094. >
  16095. >"Inside Macintosh:Interapplication Communication" gives some but not
  16096. >all of the story. Check out issues #18 and #19 of Apple's "develop"
  16097. >magazine for a couple of articles with sample code. Also, if you know
  16098. >someone who has tapes of this year's WWDC, take a look at Lee Buck's
  16099. >talk on the same subject (was on day 1 of the conference).
  16100. >
  16101. >
  16102. >best regards, Paul
  16103.  
  16104. Paul's article (he was pretty cunning about not mentioning that!) in
  16105. Develop 18 is pretty good. I haven't seen the article in issue 19 (is
  16106. Develop 19 out yet?).
  16107.  
  16108. Regarding the WWDC talk. I checked my notes: wasn't this talk on Tuesday,
  16109. May 17th: AppleScript Current and Futures.
  16110.  
  16111. Generally you move into the twilight zone when you attempt this cool stuff.
  16112.  
  16113. It seem that not even Apple has tried this stuff. I'm sure that fame and
  16114. fortune awaits the people who do this right. Or it may go over everyones
  16115. head,
  16116.  
  16117. My bet is that people doing "vertical market" apps (that have to be a
  16118. little customizable) have the best chances of making tinkerable apps that
  16119. will work in a real environment. You need a target application that needs
  16120. to be mallable (so you would want to change it) but which requires being
  16121. coded as an app (rather than a script or a stack or whatever). If anyone
  16122. has any ideas what these apps might be I'd like to hear about them. I think
  16123. multimedia and games may fall into this category ...
  16124.  
  16125. Kevin Purcell, N7WIM / G8UDP                    xenolith@halcyon.com
  16126. Seattle dBug Mac Developers SIG organiser       (206) 649-6489
  16127. =========================================================================
  16128. Date:         Tue, 23 Aug 1994 15:37:03 -0800
  16129. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16130. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16131. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  16132. Subject:      Re: Script AOL? (Was-Re: Online&Shutdown)
  16133.  
  16134. >I can't speak for AOL but as for timed shutdowns etc you should give "Cron"
  16135. >a test drive. (Information at the end of this post.) This could arguably be
  16136. >the best addon for the Mac I have ever located :-)
  16137. >
  16138.         I also just found a similar program called Chronograph up on AOL
  16139. last night.  It offers similar features to Cron, though is a bit more
  16140. updated.  I will try to send it off to gaea later.
  16141.  
  16142.  
  16143. Leonard
  16144.  
  16145. -----------------------------------------------------------------------------
  16146. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  16147. Director of Advanced Technology         AppleLink:      MACgician
  16148. Aladdin Systems, Inc.                   GEnie:          MACgician
  16149. =========================================================================
  16150. Date:         Wed, 24 Aug 1994 10:52:20 +1200
  16151. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16152. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16153. From:         Owen Watson <owen@RSNZ.GOVT.NZ>
  16154. Subject:      Re: text processing engines
  16155.  
  16156. >>I want to do some serious text processing--namely, scripts to do reference
  16157. >>threaded digestification of mailing list mail.  I'm considering BBEdit as
  16158. >>the engine, but I wondered if anyone had other suggestions?
  16159. >
  16160. As an addition to Tom Cloney's excellent list of suggestions, perhaps you
  16161. should have a look at Nisus; as well as being a good WP it's got a good
  16162. macro language with grep capabilities. The version with AppleScript support
  16163. (NisusWriter) is currently in beta.
  16164.  
  16165. _________________________________________________________________________
  16166. Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
  16167. Internet watson.o@rsnz.govt.nz  Ph: +64 4 472 7421 Fax: +64 4 473 1841
  16168. The gateway to New Zealand science: http://www.rsnz.govt.nz/
  16169. =========================================================================
  16170. Date:         Wed, 24 Aug 1994 12:31:03 +1200
  16171. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16172. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16173. From:         Owen Watson <owen@RSNZ.GOVT.NZ>
  16174. Subject:      Re: Sybase OSAX?
  16175.  
  16176. >The Database Scripting Kit is an OSAX, available from Graphical
  16177. >Business Interfaces  (219) 253-8623, AppleLink  D2193 who have some
  16178. >interesting sounding
  16179.  
  16180. Beware of GBI (if it's the same one; Steve Mansfield is the name); I bought
  16181. a 4D external package off him. Zero support, and asking for the money-back
  16182. guarantee has produced nothing to date.
  16183.  
  16184. _________________________________________________________________________
  16185. Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
  16186. Internet watson.o@rsnz.govt.nz  Ph: +64 4 472 7421 Fax: +64 4 473 1841
  16187. The gateway to New Zealand science: http://www.rsnz.govt.nz/
  16188. =========================================================================
  16189. Date:         Tue, 23 Aug 1994 18:57:56 -0700
  16190. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16191. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16192. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  16193. Subject:      Re: AppleScript Objects
  16194.  
  16195. >>Maybe I should play with AS objects some more...
  16196. >>
  16197. >>Derrick
  16198. >
  16199. >You should -- they're the most fun things in AS.
  16200. >
  16201. >Shame they didn't include elements. You'd be able to build full grown
  16202. >scriptable apps in AS.
  16203. >
  16204. >Maybe in AS 2.0
  16205. >
  16206. >Have fun!
  16207. >
  16208.  
  16209. Actually, there is the little osax on gaea (sorry, name forgotten) which
  16210. uses the PowerTalk Catalog Manager to run a little database.  The
  16211. Collection Manager of QuickDraw GX could be similarly (and more usefully to
  16212. me, since I see no use here in PowerTalk) be "drafted" to the task of
  16213. holding elements.
  16214.  
  16215.    --John
  16216.  
  16217. --
  16218. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  16219. When was the last time you checked out the ceiling tiles in a building you
  16220. were in?
  16221. =========================================================================
  16222. Date:         Tue, 23 Aug 1994 19:05:07 -0700
  16223. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16224. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16225. From:         Steve Michel <michel@NETCOM.COM>
  16226. Subject:      Re: FMPro Field listing?
  16227. In-Reply-To:  <199408230439.VAA14122@mail.netcom.com> from "Joel Smith" at Aug
  16228.               22, 94 11:41:04 pm
  16229.  
  16230. >
  16231. > How can I get a complete field list for any particular database. All I can
  16232. > get at this point is a list of the fields on the active layout. Am I missing
  16233. > something really obvious? This should be simple, but I've tried several
  16234. > things and nothing so far. Is this a FileMaker Pro feature?
  16235. >
  16236. > I can get the number of fields in a database, but I can only get a list of
  16237. > field names for the current layout. I can only get names by number for those
  16238. > fields on the layout (or so it seems). Any suggestions?  Something more
  16239. > elegant than looping through all layouts would be good. Thanks
  16240. >
  16241. > Joel Smith
  16242. >
  16243.  
  16244. Use layout 0, which always contains all the fields in the database:
  16245.  
  16246. tell application "FileMaker Pro"
  16247.         the Name of every Field of Layout 0
  16248. end tell
  16249.  
  16250. Steve
  16251. =========================================================================
  16252. Date:         Wed, 24 Aug 1994 14:04:00 +1200
  16253. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16254. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16255. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  16256.               NZ" <LDO@WAIKATO.AC.NZ>
  16257. Subject:      Re: AppleScript Objects
  16258.  
  16259. "John W. Baxter" <jwbaxter@OLYMPUS.NET> writes:
  16260.  
  16261. >Actually, there is the little osax on gaea (sorry, name forgotten) which
  16262. >uses the PowerTalk Catalog Manager to run a little database.  The
  16263. >Collection Manager of QuickDraw GX could be similarly (and more usefully to
  16264. >me, since I see no use here in PowerTalk) be "drafted" to the task of
  16265. >holding elements.
  16266.  
  16267. Yes, but the Collection Manager doesn't provide persistence: you'd have to
  16268. flatten the collection to disk and unflatten it back into RAM again later as
  16269. separate steps. AOCE catalogs give you persistence automatically. PowerShare
  16270. catalogs even give you multi-user access and access control.
  16271.  
  16272. And don't forget the ability to browse data from the Finder...
  16273.  
  16274. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  16275. Info & Tech Services Division              fax: +64-7-838-4066
  16276. University of Waikato            electric mail: ldo@waikato.ac.nz
  16277. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  16278. =========================================================================
  16279. Date:         Tue, 23 Aug 1994 23:59:14 GMT
  16280. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16281. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16282. From:         Jay Hebert <jayh@LAISON.W8HD.ORG>
  16283. Organization: L'AISON - Beverly Hills, Michigan
  16284. Subject:      Re: Wanted: CTB osax
  16285.  
  16286. >daver@netcom.com wrote:
  16287. >>Here is my 'wish list' if anyone is going to write such as OSAX:
  16288. >>
  16289. >>- Should have capability of "wait for string" and "send string", like ZTerm
  16290. >>and Microphone.
  16291. >>
  16292. >>- Should have capability of putting received data into a variable, like the
  16293. >>TCP/IP OSAX can do. This allows you to write if/then statements about what
  16294. >>to do depending on the data sent.
  16295. >>
  16296. >
  16297. >This would indeed be very nice, and is a thing that has annoyed me about
  16298. >SITcomm, which allows you to "wait for text", but only if you know what to
  16299. >wait for!
  16300. >
  16301. Yes! Now I know I am not alone in this. I have much use for that function in
  16302. SITcomm, and have voiced this to the authors before. I am curious as to how
  16303. great of a ned this is? Is this something that Dave and I want, or is the
  16304. demand great enough to merit a change in the next upgrade of SITcomm?
  16305.  
  16306. Thanks in Advance, and
  16307. Regards,
  16308. Jay Hebert
  16309. jayh@laison.w8hd.org
  16310. --
  16311.  
  16312. ==========================jayh@laison.w8hd.org=========================
  16313.   Metallica,||   When a man lies he murders / Some part of the world
  16314.    To Live  ||These are the pale deaths which / Men miscall their lives
  16315.      is     ||     All this I cannot bear / To witness any longer
  16316.    To Die   ||     Cannot the kingdom of salvation / Take me home
  16317. =======================================================================
  16318. 1)  These opinions are mine.-==- 2)  Sending me mail gives me
  16319. I'm too self-interested to  -==- permission to reproduce it in any form
  16320. speak for anyone else.      -==- unless otherwise explicitly stated.
  16321. =========================================================================
  16322. Date:         Tue, 23 Aug 1994 22:26:19 -0700
  16323. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16324. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16325. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  16326. Subject:      Re: AppleScript Objects
  16327.  
  16328. >"John W. Baxter" <jwbaxter@OLYMPUS.NET> writes:
  16329. >
  16330. >>Actually, there is the little osax on gaea (sorry, name forgotten) which
  16331. >>uses the PowerTalk Catalog Manager to run a little database.  The
  16332. >>Collection Manager of QuickDraw GX could be similarly (and more usefully to
  16333. >>me, since I see no use here in PowerTalk) be "drafted" to the task of
  16334. >>holding elements.
  16335. >
  16336. >Yes, but the Collection Manager doesn't provide persistence: you'd have to
  16337. >flatten the collection to disk and unflatten it back into RAM again later as
  16338. >separate steps. AOCE catalogs give you persistence automatically. PowerShare
  16339. >catalogs even give you multi-user access and access control.
  16340. >
  16341. >And don't forget the ability to browse data from the Finder...
  16342.  
  16343. All that is fine...so long as my vast network consists of 2 machines,
  16344. within arm's length, both with me as the only user, and incredibly poor US
  16345. West performance in (206)437 makes automated dialing or answering
  16346. impossible, PowerTalk won't be installed on my machines.  I don't think I'm
  16347. the only one who is going to not install PowerTalk.
  16348.  
  16349. Actually, I don't need the capability, since I (a) have Frontier running
  16350. (and hence its database on-line), and (b) Frontier gives me access to uBASE
  16351. for things which shouldn't take up room in Frontier's db.
  16352.  
  16353.    --John
  16354.  
  16355. --
  16356. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  16357. When was the last time you checked out the ceiling tiles in a building you
  16358. were in?
  16359. =========================================================================
  16360. Date:         Wed, 24 Aug 1994 00:48:10 -0700
  16361. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16362. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16363. From:         Jon Pugh <jonpugh@NETCOM.COM>
  16364. Subject:      Re: Attachability & Tinkerability...
  16365.  
  16366. Kevin Purcell <xenolith@HALCYON.COM> wrote:
  16367. >
  16368. >>> Where can I find information about the above topics and how to implement
  16369. >>> them in an application?
  16370.  
  16371. [snip!]
  16372.  
  16373. >Generally you move into the twilight zone when you attempt this cool stuff.
  16374. >
  16375. >It seem that not even Apple has tried this stuff. I'm sure that fame and
  16376. >fortune awaits the people who do this right. Or it may go over everyones
  16377. >head,
  16378. >
  16379. >My bet is that people doing "vertical market" apps (that have to be a
  16380. >little customizable) have the best chances of making tinkerable apps that
  16381. >will work in a real environment. You need a target application that needs
  16382. >to be mallable (so you would want to change it) but which requires being
  16383. >coded as an app (rather than a script or a stack or whatever). If anyone
  16384. >has any ideas what these apps might be I'd like to hear about them. I think
  16385. >multimedia and games may fall into this category ...
  16386.  
  16387. I don't know about all the possible apps, but Apple has already done one of
  16388. the Mac's most attachable and tinkerable apps, Hypercard.  So it would seem
  16389. that Apple _has_ tried this stuff, but perhaps it already went over
  16390. people's heads.  ;)
  16391.  
  16392. Personally, this is my vision of the future.  Being a nerd, I scope out the
  16393. consoles on Star Trek and imagine how they must be programmed to work.  It
  16394. would seem that they are/would be completely programmable so that you can
  16395. make your own custom control system (although most people will use the
  16396. standard templates that ship with the ship).  It would be sort of like a
  16397. snappy Hypercard interface to a complex mechanical system complete with
  16398. intersteller ftp and a humongous database and memory storage.  That's not
  16399. including the Holodeck!  ;)
  16400.  
  16401. In some ways this could be similar to the World Wide Web (Universal Warp
  16402. Web?). Imagine being able to pull up anyone's public Home page and simply
  16403. copying some of their controls and buttons to your private collection.  You
  16404. can then layer your controls so that one button leads you to another
  16405. collection of controls. This could be very similar to Hypercard's stack
  16406. idea, although with more power and in color, of course.  :)  I think this
  16407. sort of interface also will be the culmination of the current OOP efforts.
  16408. Each of these buttons or widgets or whatever could be programs which would
  16409. use either standard code or new custom code.  You could pick up a piece of
  16410. program and stuff it in another program while it is running.  There are a
  16411. lot of systems in place today that do a lot of this kind of stuff.
  16412. Eventually we will have some kind of standardized computer systems that
  16413. everyone can use and their interfaces will be completely tinkerable and
  16414. attachable.  Then we can carry around Newton pocket clipboards.  ;)
  16415.  
  16416. Of course, it might be some time before you can buy any of this, unless we
  16417. get rid of money and it's all free.  ;)
  16418.  
  16419. Jon
  16420.  
  16421. PS
  16422.  
  16423. I want transporters to the ski resorts!  Ski every mountain!
  16424. =========================================================================
  16425. Date:         Wed, 24 Aug 1994 15:51:47 +0800
  16426. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16427. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16428. From:         Todd Hooper <todd@PERTH.DIALIX.OZ.AU>
  16429. Subject:      Re: Sybase OSAX?
  16430. In-Reply-To:  <199408240629.OAA01637@gecko.DIALix.oz.au> from "Automatic digest
  16431.               processor" at Aug 24, 94 00:00:23 am
  16432.  
  16433. I've used the DataScript gateway from General Knowledge against
  16434. an Oracle database. In fact, I just reviewed it for MacNews. It works
  16435. quite nicely. If you are familiar with AppleScript and SQL then you
  16436. should have no problems. The tech support from the Australian distributor
  16437. was also very good.
  16438.  
  16439. You can reach General Knowledge via knowledgable@applelink.apple.com. They
  16440. have a demo version available. The actual program is platform specific,
  16441. so you would need the Sybase model as opposed to the Oracle or DAL models.
  16442.  
  16443. Speed is probably the major issue. v2.0 is faster than 1.0 was, but it
  16444. still needs a fairly hefty Mac to get good performance.
  16445.  
  16446. Regards,
  16447.  
  16448. Todd
  16449. =========================================================================
  16450. Date:         Wed, 24 Aug 1994 22:43:26 +0930
  16451. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16452. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16453. From:         Nick Hodge <nickh@RANDOMSA.COM.AU>
  16454. Subject:      Re(2): Attachability & Tinkerability...
  16455.  
  16456. >Kevin Purcell <xenolith@HALCYON.COM> wrote:
  16457.  
  16458. >>>> Where can I find information about the above topics and how to implement
  16459. >>>> them in an application?
  16460.  
  16461. >[snip!]
  16462.  
  16463. >>Generally you move into the twilight zone when you attempt this cool stuff.
  16464. >>
  16465. >>It seem that not even Apple has tried this stuff. I'm sure that fame and
  16466. >>fortune awaits the people who do this right. Or it may go over everyones
  16467. >>head,
  16468. >>
  16469. >>My bet is that people doing "vertical market" apps (that have to be a
  16470. >>little customizable) have the best chances of making tinkerable apps that
  16471. >>will work in a real environment. You need a target application that needs
  16472. >>to be mallable (so you would want to change it) but which requires being
  16473. >>coded as an app (rather than a script or a stack or whatever). If anyone
  16474. >>has any ideas what these apps might be I'd like to hear about them. I think
  16475. >>multimedia and games may fall into this category ...
  16476.  
  16477. >I don't know about all the possible apps, but Apple has already done one of
  16478. >the Mac's most attachable and tinkerable apps, Hypercard.  So it would seem
  16479. >that Apple _has_ tried this stuff, but perhaps it already went over
  16480. >people's heads.  ;)
  16481.  
  16482. I concur with Jon's sentiments about attachability/tinkerability for the
  16483. "rocket scientist" users [and Star Trek visions: I want a holodeck in my
  16484. house! 3D touch-n-feel VR  :-)  ].  I forsee the day when we
  16485. consultants/developers can purchase apps/objects and build custom apps for
  16486. customers.  Sort of an OpenDoc-AppleScript Soup (woops! Newton term!)
  16487.  
  16488. By the way, what every happened to Apple's Mother Of All Object-Oriented
  16489. Development environment, SK8? (pronounced Skate!)  The ATG team demoed it at
  16490. the 1993 WWDC, but I've heard nothing since.  Did it get the heave-ho in the
  16491. Apple Summer'93 Reorg(TM)??
  16492.  
  16493.  
  16494.  
  16495. --
  16496. __________________________________________________________________________
  16497. Nick Hodge                       =      A proud caffiene enhanced lifeform
  16498.  
  16499. Consulting Systems Engineer      |                   nickh@randomsa.com.au
  16500. ))/\ Random Access               |                    AppleLink:  AUST0370
  16501.  \\\\Adelaide, South Australia   |                   CompuServe: 73320,667
  16502. =========================================================================
  16503. Date:         Wed, 24 Aug 1994 08:42:22 -0500
  16504. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16505. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16506. From:         Fred Terry <pfterry@LKS.CSI.COM>
  16507. Subject:      Re: AppleScript Objects
  16508. In-Reply-To:  Your message of "Tue, 23 Aug 94 22:26:19 PDT"
  16509.  
  16510. [much snipped]
  16511. >>Yes, but the Collection Manager doesn't provide persistence: you'd have to
  16512. >>flatten the collection to disk and unflatten it back into RAM again later as
  16513. >>separate steps. AOCE catalogs give you persistence automatically. PowerShare
  16514. >>catalogs even give you multi-user access and access control.
  16515. >>
  16516. >>And don't forget the ability to browse data from the Finder...
  16517.  
  16518. >All that is fine...so long as my vast network consists of 2 machines,
  16519. >within arm's length, both with me as the only user, and incredibly poor US
  16520. >West performance in (206)437 makes automated dialing or answering
  16521. >impossible, PowerTalk won't be installed on my machines.  I don't think I'm
  16522. >the only one who is going to not install PowerTalk.
  16523. >
  16524. >Actually, I don't need the capability, since I (a) have Frontier running
  16525. >(and hence its database on-line), and (b) Frontier gives me access to uBASE
  16526. >for things which shouldn't take up room in Frontier's db.
  16527.  
  16528. Well, ScriptBase from Main Event (I hear rumors that it's shipping, but I
  16529. don't know for sure) provides you with a database capability for AppleScript
  16530. where you can store scripts, objects, and other odds and ends. If I can get
  16531. any additional information, I'll pass it along.
  16532.  
  16533. pf
  16534. =========================================================================
  16535. Date:         Wed, 24 Aug 1994 11:14:15 -0400
  16536. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16537. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16538. From:         Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
  16539. Subject:      Re: FMPro Field listing?
  16540.  
  16541. >How can I get a complete field list for any particular database. All I can
  16542. >get at this point is a list of the fields on the active layout. Am I missing
  16543. >something really obvious? This should be simple, but I've tried several
  16544. >things and nothing so far. Is this a FileMaker Pro feature?
  16545. >
  16546. >I can get the number of fields in a database, but I can only get a list of
  16547. >field names for the current layout. I can only get names by number for those
  16548. >fields on the layout (or so it seems). Any suggestions?  Something more
  16549. >elegant than looping through all layouts would be good. Thanks
  16550. >
  16551. >Joel Smith
  16552.  
  16553.  
  16554. This ain't obvious - I dug this out of one of the FM help gurus: there is a
  16555. magic layout in Filemaker called Layout 0.  It is invisible and contains
  16556. every field in the database and is dynamically updated when you add a field
  16557. to your database.  So if you always specify layout 0 you will know you are
  16558. working with every field.
  16559.  
  16560. Mark Hadfield
  16561. hadfield@sickkids.on.ca
  16562.  
  16563. Mark Hadfield
  16564. hadfield@sickkids.on.ca
  16565. The Hosptial For Sick Children
  16566. =========================================================================
  16567. Date:         Wed, 24 Aug 1994 10:47:21 -0400
  16568. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16569. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16570. From:         Kiran Wagle <groo@NETCOM.COM>
  16571. Subject:      class 'event'
  16572.  
  16573. What exactly is the class 'event' used for?
  16574.  
  16575. Does anyone have a real, honest, theory-laden language spec for AppleScript?
  16576.  
  16577. The docs just aren't answering my questions. :-(
  16578.  
  16579. ~ Kiran
  16580.  
  16581. --
  16582. 6216 41st Avenue Hyattsville MD 20782 301/779-0756 <groo@netcom.com>
  16583. =========================================================================
  16584. Date:         Wed, 24 Aug 1994 08:36:03 -0700
  16585. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16586. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16587. From:         Derrick Schneider <derrick@NETCOM.COM>
  16588. Subject:      Re: AppleScript Objects
  16589. In-Reply-To:  <199408240801.BAA14101@mail.netcom.com>
  16590.  
  16591. On Tue, 23 Aug 1994, John W. Baxter wrote:
  16592.  
  16593. > >"John W. Baxter" <jwbaxter@OLYMPUS.NET> writes:
  16594. > >Yes, but the Collection Manager doesn't provide persistence: you'd have to
  16595. > >flatten the collection to disk and unflatten it back into RAM again later as
  16596. > >separate steps. AOCE catalogs give you persistence automatically. PowerShare
  16597. > >catalogs even give you multi-user access and access control.
  16598.  
  16599. And if one needs a persistent database for AppleScript, I reccommend
  16600. ScriptBase, a great little utility from Main Event. It's a scripting
  16601. addition/database which provides the same functionality as Frontier's
  16602. Object Database for AppleScript. It's pretty slick.
  16603.  
  16604. Main Event's number is 202 298 9595
  16605.  
  16606. Derrick
  16607. =========================================================================
  16608. Date:         Wed, 24 Aug 1994 08:51:41 -0700
  16609. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16610. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16611. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  16612. Subject:      Re: AppleScript Objects
  16613.  
  16614. At 08:36 8/24/94 -0700, Derrick Schneider wrote:
  16615. >On Tue, 23 Aug 1994, John W. Baxter wrote:
  16616. >
  16617. >> >"John W. Baxter" <jwbaxter@OLYMPUS.NET> writes:
  16618. >> >Yes, but the Collection Manager doesn't provide persistence: you'd have to
  16619. >> >flatten the collection to disk and unflatten it back into RAM again later as
  16620. >> >separate steps. AOCE catalogs give you persistence automatically. PowerShare
  16621. >> >catalogs even give you multi-user access and access control.
  16622. >
  16623. >And if one needs a persistent database for AppleScript, I reccommend
  16624. >ScriptBase, a great little utility from Main Event. It's a scripting
  16625. >addition/database which provides the same functionality as Frontier's
  16626. >Object Database for AppleScript. It's pretty slick.
  16627. >
  16628. >Main Event's number is 202 298 9595
  16629.  
  16630. Thanks, Derrick.  You reminded me that Frontier Runtime also provides the
  16631. same functionality as Frontier's object database, for AppleScript.  $35
  16632. shareware after 30 day test.  Downloadable from the gaea site:
  16633.  
  16634.   ftp://gaea.kgs.ukans.edu:frontier/FromUserland/runtime303.sea.hqx
  16635.  
  16636. Online documentation kit in
  16637.  
  16638.   ftp://gaea.kgs.ukans.edu:frontier/FromUserland/DocServer_for_Runtime.sit.hqx
  16639.  
  16640.      --John
  16641.  
  16642. --John W. Baxter    Port Ludlow, WA USA   jwbaxter@pt.olympus.net
  16643.   UserLand Software support
  16644. =========================================================================
  16645. Date:         Wed, 24 Aug 1994 09:11:50 -0800
  16646. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16647. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16648. From:         Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU>
  16649. Subject:      Finder Reference versus Alias Reference
  16650.  
  16651. --part_AA80BF550054715100000004
  16652. Content-Type: Text/Plain; charset=US-ASCII
  16653. Content-Disposition: Inline
  16654.  
  16655. I've run into a problem with a script that I'm writing.
  16656.  
  16657. If I run the script, I search a folder using the scriptable Finder and I get a
  16658. reference back to specific items in the folder of the form:
  16659.  
  16660.    file "foo" of folder "bar" of startup disk
  16661.  
  16662. The rest of the script is spent compressing and archiving the file, connecting
  16663. to a FirstClass board with SITcomm, and transfering the compressed file back
  16664. to a central location.
  16665.  
  16666. I would also like to send files by just dropping them on the script but I'm
  16667. having problems with the way these files are referenced. It seems there:
  16668.  
  16669.    alias "MacintoshHD:bar:foo"
  16670.  
  16671. Is there a way for me to convert this type of reference to the type that the
  16672. scriptable finder uses? It seems that everything I try doesn't work.
  16673.  
  16674. Please send responses to me directly or via cc since I get the list digested.
  16675.  
  16676. Thanks a lot!
  16677.  
  16678. Greg Francis
  16679.  
  16680. --part_AA80BF550054715100000004
  16681. Content-Type: Text/Plain; charset=US-ASCII
  16682. Content-Disposition: Inline
  16683.  
  16684. --------------------------------------------------------------------------
  16685. Greg Francis                | STEP/Star Schools Project
  16686. Research and Development    | Educational Service District 101, Spokane WA
  16687. Technical Support Staff     | Bringing the best in K-12 distance education
  16688. gfrancis@esdtcom.wednet.edu | to remote schools across the United States.
  16689. --part_AA80BF550054715100000004--
  16690. =========================================================================
  16691. Date:         Wed, 24 Aug 1994 11:20:22 -0500
  16692. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16693. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16694. From:         Steve Alex <steve_alex@AIDT.EDU>
  16695. Subject:      Run Script and self-modifying code!
  16696.  
  16697. Its almost dangerous the things you can pick up just scanning this digest!
  16698.  
  16699. The care and feeding of 50 some co-workers using Mac's can sometimes be
  16700. painful, especially since some of them should only be using a pencil because
  16701. a ballpoint pen is a little too complicated for them! (I hope people aren't
  16702. still using the sales pitch that "anyone" can use a Mac). But we work with
  16703. them (I am exaggerating about our users!) and try to make things as simple as
  16704. possible.  Playing with AppleScript over the last six months or so we've
  16705. implemented a couple of script-based helpers (copy documents to a server with
  16706. a drop script - putting them in the right place based on their contents,
  16707. generating form letters, return receipts for PowerTalk mail, and other stuff
  16708. like that). I've though about putting a stay running application on every
  16709. machine that would help us monitor and solve problems. Something comes up
  16710. about once a week that is a candidate for the monitor application - but
  16711. that's the problem - it would be a configuration management nightmare, adding
  16712. new things to the script, distributing the scripts, etc., etc.
  16713.  
  16714. I guess I missed  the "run script" command until it showed up on the digest.
  16715. Having played with about every language from Ada to 6502 assembly, I kind of
  16716. though that AppleScript was a fairly structured and somewhat strongly typed
  16717. language - and that it would not have things like "self-modifying code".
  16718. Having spend too many hours with the dBase language in some past existence, I
  16719. seemed to recall something called "macro substitution". You put a ampersand
  16720. (&) before the variable name and it executed the command stored in the
  16721. variable. Neat stuff, but highly unstructured. Guess what "run script" is?
  16722.  
  16723. For instance, create a stay running script application "foo" that consists
  16724. of:
  16725.  
  16726. on doFinderCommand(theCommand)
  16727.         tell application "Finder"
  16728.                 set theResult to run script theCommand
  16729.         end tell
  16730.         return theResult
  16731. end finderCommand
  16732.  
  16733. Now from another machine
  16734.  
  16735. tell application "foo" of machine "bar" of zone "x" to
  16736. doFinderCommand("restart")
  16737.  
  16738. I don't thing this is what they had in mind, but we all knew we could do it.
  16739. "Run Script" does provide a way of doing useful things like:
  16740.  
  16741. "User 12" complains: "My mail isn't working!!!"
  16742.  
  16743. tell application "foo" of machine "user 12" of zone "complainers"
  16744.    doFinderCommand( "count item of item "Mailbox Problems" of item "user 12")
  16745. end tell
  16746.  
  16747. If it returns something other than a 0, there is a PowerTalk mail problem
  16748. that needs to be resolved. I know that this may be a little complex example
  16749. by using PowerTalk, but I am sure everyone can thing of a couple of things
  16750. you might want to get from a user's machine. Another example to help the
  16751. though process would be to solve a PrintMonitor" problem, you might want to
  16752. check the version?
  16753.  
  16754. "version of information window of application file "PrintMonitor" of
  16755. extensions folder"
  16756.  
  16757. The scriptable finder is neat, might even have to get the book some day
  16758. (anyone know the ISBN number?). Run Script gives you some flexibility that
  16759. may make its way into a couple of our scripts and possibly yours.
  16760.  
  16761.  
  16762. Steve Alex
  16763.                         steve_alex@aidt.edu
  16764. Alabama Industrial Development Training
  16765. =========================================================================
  16766. Date:         Wed, 24 Aug 1994 09:24:41 -0700
  16767. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16768. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16769. From:         Kevin Purcell <kevinpu@ATM.COM>
  16770. Subject:      Re: class 'event'
  16771.  
  16772. >What exactly is the class 'event' used for?
  16773. >
  16774. >Does anyone have a real, honest, theory-laden language spec for AppleScript?
  16775. >
  16776. >The docs just aren't answering my questions. :-(
  16777. >
  16778. >~ Kiran
  16779. >
  16780. >--
  16781. >6216 41st Avenue Hyattsville MD 20782 301/779-0756 <groo@netcom.com>
  16782.  
  16783. One thing you may want to invest in is a copy of Inside Mac:
  16784. Interapplication Communication, which has a lot of details (but is not
  16785. complete).
  16786.  
  16787. I found this gave me a better view of scripting as it fits into the system
  16788. (and of course as to how to actually implement it).
  16789.  
  16790. Kevin Purcell           kevinpu@atm.com
  16791. Attachmate Corp         (206) 649-6489
  16792. =========================================================================
  16793. Date:         Wed, 24 Aug 1994 11:31:20 -0500
  16794. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16795. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16796. From:         Fred Terry <pfterry@LKS.CSI.COM>
  16797. Subject:      Re: class 'event'
  16798. In-Reply-To:  Your message of "Wed, 24 Aug 94 10:47:21 EDT"
  16799.  
  16800. Kiran sez...
  16801.  
  16802. >What exactly is the class 'event' used for?
  16803. >
  16804. >Does anyone have a real, honest, theory-laden language spec for AppleScript?
  16805. >
  16806. >The docs just aren't answering my questions. :-(
  16807.  
  16808. Don't know if this will completely help you, but you might want to take a look
  16809. at the Apple Event Registry (available in paper from APDA or on develop and
  16810. Developer CD ROMs) and the Inside Mac Interapplication Communication volume.
  16811.  
  16812. I'm sure others will chime in.
  16813.  
  16814. pf
  16815. =========================================================================
  16816. Date:         Wed, 24 Aug 1994 09:58:25 -0700
  16817. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16818. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16819. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  16820. Subject:      Re: Finder Reference versus Alias Reference
  16821.  
  16822. At 09:11 8/24/94 -0800, Greg Francis wrote:
  16823. >I've run into a problem with a script that I'm writing.
  16824. >
  16825. >If I run the script, I search a folder using the scriptable Finder and I get a
  16826. >reference back to specific items in the folder of the form:
  16827. >
  16828. >   file "foo" of folder "bar" of startup disk
  16829. >
  16830. >The rest of the script is spent compressing and archiving the file, connecting
  16831. >to a FirstClass board with SITcomm, and transfering the compressed file back
  16832. >to a central location.
  16833. >
  16834. >I would also like to send files by just dropping them on the script but I'm
  16835. >having problems with the way these files are referenced. It seems there:
  16836. >
  16837. >   alias "MacintoshHD:bar:foo"
  16838. >
  16839. >Is there a way for me to convert this type of reference to the type that the
  16840. >scriptable finder uses? It seems that everything I try doesn't work.
  16841.  
  16842. This snippet will point the way (it also shows how to get the selected
  16843. items as strings).  It assumes AppleScript 1.1 (and Scriptable Finder).
  16844.  
  16845. tell application "Finder"
  16846.     set foo to selection
  16847.     set bar to {}
  16848.     set baz to {}
  16849.     repeat with x in foo
  16850.         set end of bar to x as string
  16851.         set end of baz to x as alias
  16852.     end repeat
  16853. end tell
  16854. {foo, bar, baz}
  16855.  
  16856.    --John
  16857.  
  16858. --
  16859. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  16860. When was the last time you checked out the ceiling tiles in a building you
  16861. were in?
  16862. =========================================================================
  16863. Date:         Wed, 24 Aug 1994 19:20:36 +0200
  16864. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16865. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16866. From:         Thomas Baetzler <bath0011@FH-KARLSRUHE.DE>
  16867. Subject:      Cumulus PowerPro anyone?
  16868.  
  16869. Has anybody else played around with Cululus PowerPro's AS interface?
  16870.  
  16871. I am trying to get the DB engine to serve me the name/number of a row
  16872. that I can match by one column. The documentation that came with the
  16873. upgrade disk gives an example like:
  16874.  
  16875. set found to every row where value of cell "foo" = "bar"
  16876.  
  16877. - only it just doesn't work ;-( I'm quite sure my adressing is right
  16878. since I can fx. read cell "foo" of any row that I can name.
  16879.  
  16880. The directory of CPP lists various commands of a 'Database Suite' -
  16881. but I can't find any examples/documentation for that. Can anybody out
  16882. there enlighten me?
  16883.  
  16884. Thanks for the help!
  16885.  
  16886. Thomas Baetzler, bath0011@fh-karlsruhe.de, thb@spectre.ka.sub.org
  16887. ---
  16888. This product has been cruelly tested on cute little furry animals.
  16889. =========================================================================
  16890. Date:         Wed, 24 Aug 1994 11:19:19 -0700
  16891. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16892. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16893. From:         Terry Forrester <terryf@VEGA.LPL.ARIZONA.EDU>
  16894. Subject:      Re: Attachability & Tinkerability...
  16895.  
  16896. Jon Pugh <jonpugh@netcom.com> wrote:
  16897.  
  16898. > In some ways this could be similar to the World Wide Web (Universal Warp
  16899. > Web?). Imagine being able to pull up anyone's public Home page and simply
  16900. > copying some of their controls and buttons to your private collection.  You
  16901. > can then layer your controls so that one button leads you to another
  16902. > collection of controls. This could be very similar to Hypercard's stack
  16903. > idea, although with more power and in color, of course.  :)  I think this
  16904. > sort of interface also will be the culmination of the current OOP efforts.
  16905. > Each of these buttons or widgets or whatever could be programs which would
  16906. > use either standard code or new custom code.  You could pick up a piece of
  16907. > program and stuff it in another program while it is running.  There are a
  16908. > lot of systems in place today that do a lot of this kind of stuff.
  16909. > Eventually we will have some kind of standardized computer systems that
  16910. > everyone can use and their interfaces will be completely tinkerable and
  16911. > attachable.  Then we can carry around Newton pocket clipboards.  ;)
  16912. > I want transporters to the ski resorts!  Ski every mountain!
  16913. >
  16914.  
  16915. The latest version of the interface design and app building tools from
  16916. FaceWare, (was ViewIt, now called DynaFace) can do much of this sort of thing
  16917. now. You can attach AppleScript scripts or high-level program code to
  16918. buttons, menu items, etc. New buttons and scripts can be added while your
  16919. program is running, so you can do quite a bit without ever having to go back
  16920. and recompile your application. There is a simple script editor that can
  16921. compile/decompile scripts, and save them in 'scpt' resources. For more
  16922. info, you could contact FaceWare at (217)-328-5842, or e-mail to
  16923. faceware@aol.com.
  16924.  
  16925. --
  16926. /* Terry Forrester                   terryf@arizona.edu    */
  16927. /* Lunar and Planetary Laboratory    (602)-621-4539        */
  16928. /* University of Arizona             Tucson, AZ 85721      */
  16929. =========================================================================
  16930. Date:         Thu, 25 Aug 1994 09:06:00 +1200
  16931. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16932. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16933. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  16934.               NZ" <LDO@WAIKATO.AC.NZ>
  16935. Subject:      Re: Finder Reference versus Alias Reference
  16936.  
  16937. Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU> writes:
  16938.  
  16939. >I've run into a problem with a script that I'm writing.
  16940. >
  16941. >If I run the script, I search a folder using the scriptable Finder and I get a
  16942. >reference back to specific items in the folder of the form:
  16943. >
  16944. >   file "foo" of folder "bar" of startup disk
  16945. >
  16946. >The rest of the script is spent compressing and archiving the file, connecting
  16947. >to a FirstClass board with SITcomm, and transfering the compressed file back
  16948. >to a central location.
  16949. >
  16950. >I would also like to send files by just dropping them on the script but I'm
  16951. >having problems with the way these files are referenced. It seems there:
  16952. >
  16953. >   alias "MacintoshHD:bar:foo"
  16954. >
  16955. >Is there a way for me to convert this type of reference to the type that the
  16956. >scriptable finder uses? It seems that everything I try doesn't work.
  16957.  
  16958. It appears you don't need to--the Finder will happily accept either form.
  16959. For example, I tried this script:
  16960.  
  16961.     tell application "Finder"
  16962.         every file of alias "Mhacking Tosh II:Documents:"
  16963.     end tell
  16964.  
  16965. and I got back a list of all the files in that folder, as a list of object
  16966. references of the form 'file "xxx" of folder "Documents" of disk
  16967. "Mhacking Tosh II"'.
  16968.  
  16969. As for converting the other way, that's easy: just cast the object reference
  16970. "as alias".
  16971.  
  16972. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  16973. Info & Tech Services Division              fax: +64-7-838-4066
  16974. University of Waikato            electric mail: ldo@waikato.ac.nz
  16975. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  16976. =========================================================================
  16977. Date:         Thu, 25 Aug 1994 09:28:00 +1200
  16978. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16979. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  16980. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  16981.               NZ" <LDO@WAIKATO.AC.NZ>
  16982. Subject:      Re: Run Script and self-modifying code!
  16983.  
  16984. Steve Alex <steve_alex@AIDT.EDU> writes:
  16985.  
  16986. >For instance, create a stay running script application "foo" that consists
  16987. >of:
  16988. >
  16989. >on doFinderCommand(theCommand)
  16990. >        tell application "Finder"
  16991. >                set theResult to run script theCommand
  16992. >        end tell
  16993. >        return theResult
  16994. >end finderCommand
  16995. >
  16996. >Now from another machine
  16997. >
  16998. >tell application "foo" of machine "bar" of zone "x" to
  16999. >doFinderCommand("restart")
  17000. >
  17001. >I don't thing this is what they had in mind, but we all knew we could do it.
  17002. >"Run Script" does provide a way of doing useful things like:
  17003. >
  17004. >"User 12" complains: "My mail isn't working!!!"
  17005. >
  17006. >tell application "foo" of machine "user 12" of zone "complainers"
  17007. >   doFinderCommand( "count item of item "Mailbox Problems" of item "user 12")
  17008. >end tell
  17009.  
  17010. Yup, this is all cool stuff. However, it might be quicker to send an
  17011. already-compiled script over the network, rather than script source. There
  17012. is also the idea that your scripts should be independent of "dialect" (ie
  17013. "human language"). For example, the above example could fail if the target
  17014. machine were running the French or Japanese version of AppleScript, whereas
  17015. sending a compiled script would still work.
  17016.  
  17017. I created a simple stay-open applet called "Doer", the script of which consists
  17018. of just the following:
  17019.  
  17020.     on Do(thingy)
  17021.         run thingy
  17022.     end Do
  17023.  
  17024. I started this up on our server, and from my machine I ran the script
  17025.  
  17026.     script x
  17027.         tell application "Finder"
  17028.             every disk
  17029.         end tell
  17030.     end script
  17031.     tell application "Doer" of machine "Vice"
  17032.         Do(x)
  17033.     end tell
  17034.  
  17035. and sure enough, I got a list of every disk on the server.
  17036.  
  17037. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  17038. Info & Tech Services Division              fax: +64-7-838-4066
  17039. University of Waikato            electric mail: ldo@waikato.ac.nz
  17040. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  17041. =========================================================================
  17042. Date:         Wed, 24 Aug 1994 14:49:41 -0700
  17043. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17044. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17045. From:         Kevin Purcell <kevinpu@ATM.COM>
  17046. Subject:      Re: Finder Reference versus Alias Reference
  17047.  
  17048. >Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU> writes:
  17049. [files and alias stuff deleted]
  17050. >>Is there a way for me to convert this type of reference to the type that the
  17051. >>scriptable finder uses? It seems that everything I try doesn't work.
  17052. >
  17053. >It appears you don't need to--the Finder will happily accept either form.
  17054. >For example, I tried this script:
  17055. >
  17056. >    tell application "Finder"
  17057. >        every file of alias "Mhacking Tosh II:Documents:"
  17058. >    end tell
  17059.  
  17060. >and I got back a list of all the files in that folder, as a list of object
  17061. >references of the form 'file "xxx" of folder "Documents" of disk
  17062. >"Mhacking Tosh II"'.
  17063.  
  17064. This will only work if "Mhacking Tosh II:Documents:" already exists on the
  17065. machine compiling the script.
  17066.  
  17067. On the other hand,
  17068.  
  17069.     tell application "Finder"
  17070.         every file of file "Mhacking Tosh II:Documents:"
  17071.     end tell
  17072.  
  17073. will compile but will give a run time error on my machine (because the mac
  17074. can't find the disk "Mhacking Tosh II:"
  17075.  
  17076. >As for converting the other way, that's easy: just cast the object reference
  17077. >"as alias".
  17078.  
  17079. For example,
  17080.  
  17081. tell application "Finder"
  17082.         every file of (file "Mhacking Tosh II:Documents:" as alias)
  17083. end tell
  17084.  
  17085. This too compiles but has a run time error for the same reason as before.
  17086.  
  17087. This is dealt with in the AppleScript Language guide, p144 (I just
  17088. horrified myself by remebering that page number off the top of my head :-).
  17089.  
  17090. To sum up: the difference between an alias and a file is when you compile a
  17091. script containing an immediate form of an alias the compiler checks to see
  17092. if the alias is valid when compiling the script. This is not the case for a
  17093. file reference.
  17094.  
  17095. An almost typo free post from
  17096.  
  17097. Kevin Purcell           kevinpu@atm.com
  17098. Attachmate Corp         (206) 649-6489
  17099. =========================================================================
  17100. Date:         Wed, 24 Aug 1994 15:17:30 -0700
  17101. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17102. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17103. From:         Kevin Purcell <kevinpu@ATM.COM>
  17104. Subject:      Re: Run Script and self-modifying code!
  17105.  
  17106. Lawrence D'Oliveiro  says:
  17107. >Yup, this is all cool stuff. However, it might be quicker to send an
  17108. >already-compiled script over the network, rather than script source. There
  17109. >is also the idea that your scripts should be independent of "dialect" (ie
  17110. >"human language"). For example, the above example could fail if the target
  17111. >machine were running the French or Japanese version of AppleScript, whereas
  17112. >sending a compiled script would still work.
  17113.  
  17114. The problem here would be if you compiled the script with a later version
  17115. AS than the receiver has. It would have been nice if they defined true
  17116. supersets to avoid this problem. Is nothing transparent!
  17117.  
  17118. I think you pays yer money and you taker yer choice
  17119.  
  17120. Kevin Purcell           kevinpu@atm.com
  17121. Attachmate Corp         (206) 649-6489
  17122. =========================================================================
  17123. Date:         Thu, 25 Aug 1994 10:47:00 +1200
  17124. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17125. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17126. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  17127.               NZ" <LDO@WAIKATO.AC.NZ>
  17128. Subject:      Re: Finder Reference versus Alias Reference
  17129.  
  17130. Kevin Purcell <kevinpu@ATM.COM> writes:
  17131.  
  17132. >To sum up: the difference between an alias and a file is when you compile a
  17133. >script containing an immediate form of an alias the compiler checks to see
  17134. >if the alias is valid when compiling the script. This is not the case for a
  17135. >file reference.
  17136.  
  17137. You're right, but you can get around this. For example
  17138.  
  17139.         alias "j"
  17140.  
  17141. will not compile on my machine, since file "j" doesn't exist. But
  17142.  
  17143.         set f to "j"
  17144.         alias f
  17145.  
  17146. will compile, as will
  17147.  
  17148.         alias ("j" & "")
  17149.  
  17150. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  17151. Info & Tech Services Division              fax: +64-7-838-4066
  17152. University of Waikato            electric mail: ldo@waikato.ac.nz
  17153. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  17154. =========================================================================
  17155. Date:         Wed, 24 Aug 1994 16:13:04 -0700
  17156. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17157. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17158. From:         Kevin Purcell <kevinpu@ATM.COM>
  17159. Subject:      Re: Finder Reference versus Alias Reference
  17160.  
  17161. >Kevin Purcell <kevinpu@ATM.COM> writes:
  17162. >
  17163. >>To sum up: the difference between an alias and a file is when you compile a
  17164. >>script containing an immediate form of an alias the compiler checks to see
  17165. >>if the alias is valid when compiling the script. This is not the case for a
  17166. >>file reference.
  17167. >
  17168. >You're right, but you can get around this. For example
  17169. >
  17170. >        alias "j"
  17171. >
  17172. >will not compile on my machine, since file "j" doesn't exist. But
  17173. >
  17174. >        set f to "j"
  17175. >        alias f
  17176. >
  17177. >will compile, as will
  17178. >
  17179. >        alias ("j" & "")
  17180.  
  17181. The important bit is an immediate form (I dunno what the correct term is
  17182. for this). Anything that requires evaluation will get by the compiler.
  17183.  
  17184. Kevin Purcell, N7WIM / G8UDP                 xenolith@halcyon.com
  17185. Seattle dBug Mac Developers SIG organiser    206/649-6489
  17186. =========================================================================
  17187. Date:         Wed, 24 Aug 1994 19:13:45 EDT
  17188. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17189. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17190. From:         Danny Goodman <DGoodman@AOL.COM>
  17191. Subject:      Re: Finder Reference versus Alias Reference
  17192.  
  17193. >Is there a way for me to convert this type of reference to the type that the
  17194. >scriptable finder uses?
  17195.  
  17196. I answered Greg by mail as well, but this is something everyone may be
  17197. interested in seeing.  If you can't predict ahead of time what kind of object
  17198. will be dropped into a script, the safest method is to convert the alias
  17199. references to Finder item class objects.  An item is the most senior object
  17200. in the Finder's hierarchy for things we see in Finder windows (files,
  17201. folders, disks).  Anything called an item and bearing a pathname will be
  17202. accepted as parameters to Finder scripting commands.
  17203.  
  17204. Here's an example of how to coerce an alias (which comes back from the choose
  17205. file command) to an item class object:
  17206.  
  17207. tell application "Finder"
  17208.  set myItem to a reference to item ((choose file) as string)
  17209. end tell
  17210.  
  17211. Like lots of stuff in AppleScript, I learned this the hard way, and
  17212. incorporated the results into Script-a-File (the August utility from
  17213. ZiffNet/Mac).
  17214.  
  17215. Danny Goodman
  17216. =========================================================================
  17217. Date:         Thu, 25 Aug 1994 11:40:00 +1200
  17218. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17219. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17220. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  17221.               NZ" <LDO@WAIKATO.AC.NZ>
  17222. Subject:      Re: Finder Reference versus Alias Reference
  17223.  
  17224. Danny Goodman <DGoodman@AOL.COM> writes:
  17225.  
  17226. >An item is the most senior object
  17227. >in the Finder's hierarchy for things we see in Finder windows (files,
  17228. >folders, disks).  Anything called an item and bearing a pathname will be
  17229. >accepted as parameters to Finder scripting commands.
  17230. >
  17231. >Here's an example of how to coerce an alias (which comes back from the choose
  17232. >file command) to an item class object:
  17233. >
  17234. >tell application "Finder"
  17235. > set myItem to a reference to item ((choose file) as string)
  17236. >end tell
  17237.  
  17238. Interesting. I get back something like
  17239.  
  17240.         item "Mhacking Tosh II:Documents:Cisco AT configs temp" of
  17241.             application "Finder"
  17242.  
  17243. By the way, the basic AppleScript "file" and "alias" prefixes work with folders
  17244. and disks, too:
  17245.  
  17246.         info for file "Mhacking Tosh II:Documents"
  17247.  
  17248. (trailing colon optional) returns information for the "Documents" folder on
  17249. my hard disk, while
  17250.  
  17251.         info for file "Mhacking Tosh II:"
  17252.  
  17253. returns information about the hard disk itself.
  17254.  
  17255. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  17256. Info & Tech Services Division              fax: +64-7-838-4066
  17257. University of Waikato            electric mail: ldo@waikato.ac.nz
  17258. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  17259. =========================================================================
  17260. Date:         Thu, 25 Aug 1994 11:48:00 +1200
  17261. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17262. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17263. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  17264.               NZ" <LDO@WAIKATO.AC.NZ>
  17265. Subject:      Sound Input Control osax
  17266.  
  17267. This one is for CD lovers with CD-ROM-equipped Macs. Specifically, it's for
  17268. those with Macs where they find themselves continually switching the sound
  17269. input source between the microphone (or external audio) and CD audio. It's
  17270. an osax that will do the switching without a trip to the Sound control panel.
  17271. I've also included a couple of sample applets that you can use.
  17272.  
  17273. I've just dropped it in the incoming folder on gaea.kgs.ukans.edu. Enjoy.
  17274.  
  17275. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  17276. Info & Tech Services Division              fax: +64-7-838-4066
  17277. University of Waikato            electric mail: ldo@waikato.ac.nz
  17278. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  17279. =========================================================================
  17280. Date:         Wed, 24 Aug 1994 16:55:49 -0700
  17281. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17282. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17283. From:         Eric Gorr <ericg@CS.UOREGON.EDU>
  17284. Subject:      Developing the Aete resource
  17285.  
  17286. I have a custom apple event and would like to develop an Aete resource
  17287. for it so I can make it scriptable.
  17288.  
  17289. All I have currently is the 'Aete Editor b3' hypercard stack & IM:IC.
  17290.  
  17291. If anyone has any suggestions for things to get and/or would be willing to
  17292. help me, I would apprecate it.
  17293.  
  17294. thanx...
  17295.  
  17296.  
  17297. ===Eric Gorr================ericg@cs.uoregon.edu===========aka MystryMan===
  17298. _____
  17299. |\ /| * Invincibility is in oneself, vulnerability is in the opponent
  17300. | O | * Therefore the considerations of the intelligent always include both
  17301. |/_\|   benefit and harm (Sun Tzu)
  17302.  
  17303. #include <standard.disclamer>
  17304. =====Insults, like violence, are the last resort of the incompetent...=====
  17305. =========================================================================
  17306. Date:         Wed, 24 Aug 1994 18:04:17 -0800
  17307. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17308. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17309. From:         Peter Speck <speck@INTERVAL.COM>
  17310. Subject:      Re: Run Script and self-modifying code!
  17311.  
  17312. >I created a simple stay-open applet called "Doer", the script of which cons=
  17313. ists
  17314. >of just the following:
  17315.  
  17316. A little funny detail: Doer is the spelling of "D=F8r" when 8 bit characters
  17317. are not available, and "D=F8r" is the Danish word for "Door".
  17318.  
  17319.  
  17320. ---
  17321. Peter Speck
  17322.                              (And it was eleven o'clock
  17323.                               which was time for a little something)
  17324. =========================================================================
  17325. Date:         Thu, 25 Aug 1994 14:15:00 +1200
  17326. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17327. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17328. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  17329.               NZ" <LDO@WAIKATO.AC.NZ>
  17330. Subject:      Re: Run Script and self-modifying code!
  17331.  
  17332. Peter Speck <speck@INTERVAL.COM> observes:
  17333.  
  17334. >>I created a simple stay-open applet called "Doer", the script of which cons=
  17335. >ists
  17336. >>of just the following:
  17337. >
  17338. >A little funny detail: Doer is the spelling of "D=F8r" when 8 bit characters
  17339. >are not available, and "D=F8r" is the Danish word for "Door".
  17340.  
  17341. And my "Doer" is, in fact, a door into the system, is it not?
  17342.  
  17343. Lawrence "I'll stop now, I promise" D'Oliveiro
  17344. =========================================================================
  17345. Date:         Thu, 25 Aug 1994 15:41:00 +1200
  17346. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17347. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17348. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  17349.               NZ" <LDO@WAIKATO.AC.NZ>
  17350. Subject:      Re: Sound Input Control osax
  17351.  
  17352. Ahem. In my excitement, I forgot to include an important component in the
  17353. archive, namely the Sound Input Control osax itself!
  17354.  
  17355. I just put a new archive in the incoming folder on gaea.kgs.ukans.edu.
  17356. I hope not too many people are mad at me...
  17357.  
  17358. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  17359. Info & Tech Services Division              fax: +64-7-838-4066
  17360. University of Waikato            electric mail: ldo@waikato.ac.nz
  17361. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  17362. =========================================================================
  17363. Date:         Wed, 24 Aug 1994 23:47:51 -0500
  17364. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17365. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17366. From:         Fred Terry <pfterry@LKS.CSI.COM>
  17367. Subject:      Re: Sound Input Control osax
  17368. In-Reply-To:  Your message of "Thu, 25 Aug 94 15:41:00 +1100"
  17369.  
  17370. Lawrence said...
  17371.  
  17372. >Ahem. In my excitement, I forgot to include an important component in the
  17373. >archive, namely the Sound Input Control osax itself!
  17374. >
  17375. >I just put a new archive in the incoming folder on gaea.kgs.ukans.edu.
  17376. >I hope not too many people are mad at me...
  17377.  
  17378. Not to worry. I only moved it just a few moments ago. It can be found in
  17379.  
  17380. ftp://gaea.kgs.ukans.edu/applescript/osaxen/SoundInputControl.hqx
  17381.  
  17382. Have fun.
  17383.  
  17384. pf
  17385. =========================================================================
  17386. Date:         Thu, 25 Aug 1994 05:50:52 +0000
  17387. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17388. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17389. From:         Danny Goodman <A5933643684@ATTPLS.NET>
  17390. Subject:      Re: Finder Reference
  17391.  
  17392. :By the way, the basic AppleScript "file" and "alias" prefixes work
  17393. with folders
  17394. :and disks, too:
  17395. :
  17396. :        info for file "Mhacking Tosh II:Documents"
  17397. :
  17398. :(trailing colon optional) returns information for the :"Documents"
  17399. folder on
  17400. :my hard disk, while
  17401. :
  17402. :        info for file "Mhacking Tosh II:"
  17403. :
  17404. :returns information about the hard disk itself.
  17405. :
  17406.  
  17407. Yes, but you cannot use alias or file references for things like the
  17408. Desktop Folder or Trash in scriptable Finder.  But since both are
  17409. descended from the Item class, you can use their pathnames with the
  17410. item reference, as in:
  17411.  
  17412.    Item "Mac HD:Desktop Folder:"
  17413.  
  17414. Danny Goodman
  17415. =========================================================================
  17416. Date:         Thu, 25 Aug 1994 09:29:26 EDT
  17417. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17418. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17419. From:         "John D. Griffin" <John.D.Griffin@DARTMOUTH.EDU>
  17420. Subject:      Re: MACSCRPT Digest - 23 Aug 1994 to 24 Aug 1994
  17421.  
  17422. How do I remove myself from this distribution list?
  17423. =========================================================================
  17424. Date:         Thu, 25 Aug 1994 10:43:10 EST
  17425. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17426. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17427. From:         Kim-son Tran <ktran@CC.ATINC.COM>
  17428. Subject:      Couple of AS Questions
  17429.  
  17430. I've got a couple of questions:
  17431.  
  17432. 1)  I'm thinking of writing a word game with AppleScript and I was hoping to use
  17433. a dictionary of some type to randomly pick a word. Does anyone know of a
  17434. scriptable dictionary or a text processor which will allow scripting of the
  17435. dictionary's function? Or, does anyone know of any source I could use that is
  17436. actually a deliminated list of words?
  17437.  
  17438. 2)  I'm trying to script FMPro (2.1v2) to update a database of mine which works
  17439. fine if the database is the only document that FMPro has open. The database I'm
  17440. trying to update sends a command (via FMPro script) to an external AppleScript
  17441. script to gather information and update the database. However, if I have another
  17442. document open, the script brings the first database to the front to continue
  17443. with the update. How do I make my database update in the background, thus,
  17444. allowing me to work with other FMPro documents. I did not use the activate
  17445. command and I've address the document I'm working on via the tell statement.
  17446. Actually, since I'm using FMPro script to invoke an AppleScript script, I need
  17447. the document to be open so I didn't use the activate statement. If this doesn't
  17448. make sense please e-mail me and let me have another chance of explaining.
  17449.  
  17450. 3)  Does anyone know what is promissed with System 7.5 CD in terms of
  17451. AppleScript? (Supposedly the CD will have a lot more than the floppy version).
  17452. What I'm wondering is will it include FaceSpan?
  17453.  
  17454. Thanks,
  17455.  
  17456. Internet:   ktran@cc.atinc.com or tk@cc.atinc.com
  17457. AOL:        kimsont@aol.com
  17458. eWorld:     kimsontran@eworld.com
  17459. =========================================================================
  17460. Date:         Thu, 25 Aug 1994 11:06:42 -0400
  17461. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17462. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17463. From:         Jeff Boulter <boulter@BUCKNELL.EDU>
  17464. Subject:      Re: Couple of AS Questions
  17465. In-Reply-To:  <9408251456.AA19558@coral.bucknell.edu>
  17466.  
  17467. On Thu, 25 Aug 1994, Kim-son Tran wrote:
  17468.  
  17469. > I've got a couple of questions:
  17470. >
  17471. > 1)  I'm thinking of writing a word game with AppleScript and I was hoping to
  17472.  use
  17473. > a dictionary of some type to randomly pick a word. Does anyone know of a
  17474. > scriptable dictionary or a text processor which will allow scripting of the
  17475. > dictionary's function? Or, does anyone know of any source I could use that is
  17476. > actually a deliminated list of words?
  17477. >
  17478. Try Excalibur. I believe it's scriptable via TCL. (scripting addition
  17479. available on gaea) Excalibur is on sumex-aim.stanford.edu,
  17480. mac.archive.umich.edu, and if you can't find it there, email the author,
  17481.  zaccone@bucknell.edu.
  17482.  
  17483. Later,
  17484.  
  17485. Jeff Boulter
  17486.  
  17487. --
  17488. Jeff Boulter    boulter@bucknell.edu   http://www.bucknell.edu/bucknellian/jeff
  17489. =========================================================================
  17490. Date:         Thu, 25 Aug 1994 11:35:14 -0400
  17491. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17492. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17493. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  17494. Subject:      Re: Couple of AS Questions
  17495. In-Reply-To:  <no.id> from "Kim-son Tran" at Aug 25, 94 10:43:10 am
  17496.  
  17497. --Kim-son Tran wrote:
  17498. >
  17499. >How do I make my database update in the background, thus, allowing me to
  17500. >work with other FMPro documents.
  17501.  
  17502.     You don't. FileMaker Pro can only work with one active document at a
  17503. time.
  17504.  
  17505. >I did not use the activate command and I've address the document I'm
  17506. >working on via the tell statement.  Actually, since I'm using FMPro
  17507. >script to invoke an AppleScript script, I need the document to be open
  17508. >so I didn't use the activate statement. If this doesn't make sense
  17509. >please e-mail me and let me have another chance of explaining.
  17510.  
  17511.     It doesn't matter that you didn't use the activate command. If you
  17512. have a tell app "FileMaker Pro" control statement in an AppleScript
  17513. script then FM Pro will be busy for as long as the script remains within
  17514. that tell statement. This will hold true if you use a FM Pro script to
  17515. call an external AppleScript script.
  17516.  
  17517. >3)  Does anyone know what is promissed with System 7.5 CD in terms of
  17518. >AppleScript? (Supposedly the CD will have a lot more than the floppy version).
  17519. >What I'm wondering is will it include FaceSpan?
  17520.  
  17521.     System 7.5 is supposed to come with AppleScript 1.1 and the Finder
  17522. Scripting Extension (aka. the Scriptable Finder). I would also expect it
  17523. to contain the Script Editor and the Scriptable Text Editor and the
  17524. standard set of Scripting Additions. As for FaceSpan, that is anyone's
  17525. guess, but it would be nice if the FaceSpan people could get an update
  17526. out the door and included with 7.5. Also, while the CD will contain more
  17527. than the floppy version there won't be any core 7.5 pieces missing from
  17528. the floppy version. What won't be included on the floppies is the
  17529. bundled third party software, as well as the third party demos.
  17530.  
  17531. -Hades
  17532. =========================================================================
  17533. Date:         Thu, 25 Aug 1994 17:20:30 -0700
  17534. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17535. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17536. From:         Roel Vertegaal <R.Vertegaal@BSK.UTWENTE.NL>
  17537. Subject:      Receiving raw Apple Events in scripts
  17538.  
  17539. I am working on a mail parsing and announcement script which should run in
  17540. the background and utilize the Eudora notification event "ENot".
  17541. I would like to write something like:
  17542.  
  17543. on Appleevent class CSOm event ENot
  17544. -- announce something
  17545. end
  17546.  
  17547. Is this possible and what is the correct syntax?
  17548.  
  17549. Thanks,
  17550.  
  17551. Roel Vertegaal
  17552.  
  17553.  
  17554.         +----------------------------------------------------------+
  17555.         |               Department of Ergonomics                   |
  17556.         |                 University of Twente                     |
  17557.         |            P.O. Box 217, 7500 AE Enschede                |
  17558.         |                   The Netherlands                        |
  17559.         |                phone: +31 53 89 33 24                    |
  17560.         |                fax:   +31 53 35 66 95                    |
  17561.         +----------------------------------------------------------+
  17562. =========================================================================
  17563. Date:         Thu, 25 Aug 1994 11:00:20 -0800
  17564. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17565. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17566. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  17567. Subject:      Re: Developing the Aete resource
  17568.  
  17569. >I have a custom apple event and would like to develop an Aete resource
  17570. >for it so I can make it scriptable.
  17571. >
  17572.         The best tools for creating/editing 'aete' resources are Rez and
  17573. Resorcerer.  I prefer the former in that I can use text tools
  17574. (search/replace/macros) on it while the latter is quite nice because it
  17575. keeps lists of common items and it hides all the "reserved" stuff.
  17576.  
  17577.         You could probably make do with other tools, but why???
  17578.  
  17579.  
  17580. Leonard
  17581.  
  17582. -----------------------------------------------------------------------------
  17583. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  17584. Director of Advanced Technology         AppleLink:      MACgician
  17585. Aladdin Systems, Inc.                   GEnie:          MACgician
  17586. =========================================================================
  17587. Date:         Thu, 25 Aug 1994 11:12:32 -0800
  17588. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17589. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17590. From:         Peter Speck <speck@INTERVAL.COM>
  17591. Subject:      Re: Developing the Aete resource
  17592.  
  17593. Leonard Rosenthol wrote:
  17594.  
  17595. >>I have a custom apple event and would like to develop an Aete resource
  17596. >>for it so I can make it scriptable.
  17597. >>
  17598. >        The best tools for creating/editing 'aete' resources are Rez and
  17599. >Resorcerer.  I prefer the former in that I can use text tools
  17600. >(search/replace/macros) on it while the latter is quite nice because it
  17601. >keeps lists of common items and it hides all the "reserved" stuff.
  17602.  
  17603. Too add more to the list of tools: the 'Aete Editor b3' (I found it on
  17604. Symantec 7) is a HyperCard stack. It is nice, as it is easy to navigate
  17605. around, adding classes and events to the proper suite, etc.
  17606. One hint is to make the card larger, and show the hidden fields. Especially
  17607. in editing the properties of a class, I found this usefull.
  17608.  
  17609. ---
  17610. Peter Speck
  17611.                              (And it was eleven o'clock
  17612.                               which was time for a little something)
  17613. =========================================================================
  17614. Date:         Fri, 26 Aug 1994 08:44:00 +1200
  17615. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17616. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17617. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  17618.               NZ" <LDO@WAIKATO.AC.NZ>
  17619. Subject:      Re: Finder Reference
  17620.  
  17621. Danny Goodman <A5933643684@ATTPLS.NET> writes:
  17622.  
  17623. >:By the way, the basic AppleScript "file" and "alias" prefixes work
  17624. >with folders
  17625. >:and disks, too:
  17626. >:
  17627. >:        info for file "Mhacking Tosh II:Documents"
  17628. >:
  17629. >:(trailing colon optional) returns information for the :"Documents"
  17630. >folder on
  17631. >:my hard disk, while
  17632. >:
  17633. >:        info for file "Mhacking Tosh II:"
  17634. >:
  17635. >:returns information about the hard disk itself.
  17636. >
  17637. >Yes, but you cannot use alias or file references for things like the
  17638. >Desktop Folder or Trash in scriptable Finder.
  17639.  
  17640. It's true, "file" doesn't work, but "alias" does! I tried:
  17641.  
  17642.     tell application "Finder"
  17643.         every file of alias "Mhacking Tosh II:Desktop Folder:"
  17644.     end tell
  17645.  
  17646. and got back a list of the stuff on my desktop. I tried replacing
  17647. "Desktop Folder" with "Trash", and that works, too.
  17648.  
  17649. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  17650. Info & Tech Services Division              fax: +64-7-838-4066
  17651. University of Waikato            electric mail: ldo@waikato.ac.nz
  17652. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  17653. =========================================================================
  17654. Date:         Thu, 25 Aug 1994 13:55:04 -0800
  17655. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17656. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17657. From:         Erik Smith <ersmith@UCSD.EDU>
  17658. Subject:      Are script Libraries concurrent?
  17659.  
  17660. Are script libraries (using the load script command) available to several
  17661. scripts on the same machine at the same time.  If so, what happens to
  17662. globals declared in the library.  If not, I'll have to put the library code
  17663. into each script. Is there a commercial product that lets you create script
  17664. projects that will build a script from several files?
  17665.  
  17666. -Erik
  17667. =========================================================================
  17668. Date:         Thu, 25 Aug 1994 14:45:23 -0800
  17669. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17670. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17671. From:         "Roy S. Rapoport" <rsr@BERKSYS.COM>
  17672. Subject:      Re: Are script Libraries concurrent?
  17673.  
  17674. > Are script libraries (using the load script command) available to
  17675. > several scripts on the same machine at the same time.  If so, what
  17676. > happens to globals declared in the library.  If not, I'll have to put
  17677. > the library code into each script. Is there a commercial product that
  17678. > lets you create script projects that will build a script from
  17679. > several files?
  17680.  
  17681. I was under the impression (not rigorously tested) that when you load a
  17682. script library, you essentially give the program a copy of the library to
  17683. mess with -- in other words, that everything is localized.  I could be wrong,
  17684. though ...
  17685.  
  17686. -roy
  17687. =========================================================================
  17688. Date:         Thu, 25 Aug 1994 19:10:29 -0800
  17689. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17690. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17691. From:         Erik Smith <ersmith@UCSD.EDU>
  17692. Subject:      How to quit one script and launch another?
  17693.  
  17694. I want script application A to launch script application B and then
  17695. completely quit.  Using combinations of launch and run, the best I can do
  17696. is call B as a subroutine.  I want to do this so that script A can call
  17697. script B to update A from a file server and then re-launch A.  In the DOS
  17698. batch file world you would use CALL.
  17699.  
  17700. Any ideas?
  17701.  
  17702. -Erik
  17703. =========================================================================
  17704. Date:         Fri, 26 Aug 1994 14:24:00 +1200
  17705. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17706. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17707. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  17708.               NZ" <LDO@WAIKATO.AC.NZ>
  17709. Subject:      Re: How to quit one script and launch another?
  17710.  
  17711. Erik Smith <ersmith@UCSD.EDU> writes:
  17712.  
  17713. >I want script application A to launch script application B and then
  17714. >completely quit.  Using combinations of launch and run, the best I can do
  17715. >is call B as a subroutine.  I want to do this so that script A can call
  17716. >script B to update A from a file server and then re-launch A.  In the DOS
  17717. >batch file world you would use CALL.
  17718.  
  17719. You could have B tell A to quit.
  17720.  
  17721. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  17722. Info & Tech Services Division              fax: +64-7-838-4066
  17723. University of Waikato            electric mail: ldo@waikato.ac.nz
  17724. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  17725. =========================================================================
  17726. Date:         Fri, 26 Aug 1994 00:13:36 -0400
  17727. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17728. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17729. From:         Kiran Wagle <groo@NETCOM.COM>
  17730. Subject:      Re: Receiving raw Apple Events in scripts
  17731.  
  17732. > I am working on a mail parsing and announcement script which should run in
  17733. > the background and utilize the Eudora notification event "ENot".
  17734.  
  17735. Aren't we all. :-|
  17736.  
  17737. > on Appleevent class CSOm event ENot
  17738.  
  17739. > Is this possible and what is the correct syntax?
  17740.  
  17741. Yes and no.  It SEEMS as if you should be able to write soemthing like
  17742. on notice -- the 2.1 notification message
  17743.  
  17744. just like you write "on open"
  17745.  
  17746. But it compiles as a procedure and NOT as an event handler.  (To see the
  17747. difference, compile "on open" with special formatting for 'variables.')
  17748.  
  17749. If anyone has an example of an event handler for an event other than the
  17750. four required ones, I haven't seen it.
  17751.  
  17752. But you CAN write a handler if you use those pesky angle brackets.
  17753.  
  17754. on <<event CSOmeNot>>
  17755. do stuff
  17756. end
  17757.  
  17758. --the angle brackets are speical characters.
  17759.  
  17760. It's ugly and I don't like it, but nobody's been able to tell me (or Steve)
  17761. how to tell Applescript that notice is NOT a variable but the name of an
  17762. event.
  17763.  
  17764. ~ Kiran
  17765.  
  17766. --
  17767. 6216 41st Avenue Hyattsville MD 20782 301/779-0756 <groo@netcom.com>
  17768. =========================================================================
  17769. Date:         Fri, 26 Aug 1994 00:11:52 -0700
  17770. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17771. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17772. From:         Jon Pugh <jonpugh@NETCOM.COM>
  17773. Subject:      Re: Are script Libraries concurrent?
  17774.  
  17775. Roy S. Rapoport <rsr@BERKSYS.COM> wrote:
  17776. >
  17777. >> Are script libraries (using the load script command) available to
  17778. >> several scripts on the same machine at the same time.  If so, what
  17779. >> happens to globals declared in the library.  If not, I'll have to put
  17780. >> the library code into each script. Is there a commercial product that
  17781. >> lets you create script projects that will build a script from
  17782. >> several files?
  17783. >
  17784. >I was under the impression (not rigorously tested) that when you load a
  17785. >script library, you essentially give the program a copy of the library to
  17786. >mess with -- in other words, that everything is localized.  I could be wrong,
  17787. >though ...
  17788.  
  17789. You aren't wrong, but you're not completely correct either.  ;)
  17790.  
  17791. You can load a script (you can think of it as a library, but it's really
  17792. just a script) from disk using the "load script" command.  You can modify
  17793. properties and they will retain their values.  If you don't save the script
  17794. though, these values will be lost.  That's why AppleScript includes a
  17795. "store script" command.  You can write the script back to disk if you need
  17796. to retain data.
  17797.  
  17798. You can also embed scripts into other scripts by putting them into a
  17799. property.  This definately results in seperate copies, but you don't have
  17800. to bother loading and saving the script.  It fattens up the script since
  17801. you have a complete copy of the code in the property.  Thus, I prefer to
  17802. store an alias to the script and load it at run time.  See the FinderLib
  17803. documentation for complete examples of both techniques.
  17804.  
  17805. Personally, I prefer to use a seperate run-only script with no code in it
  17806. for data.  I do this because you lose the data when you recompile and if
  17807. you need to change the code you can be totally screwed if you forget or
  17808. recompile accidentally.  Storing your script without any code generally
  17809. prevents you from needing to look at it and storing it read-only definately
  17810. keeps you from looking at it.
  17811.  
  17812. So Roy, you are correct in saying that every program gets a different copy
  17813. of the script object, but you don't have to toss the changes made to it if
  17814. you don't want.  Now the issue becomes, what kind of concurrency problems
  17815. do you have to avoid?  You can't simply keep the script file open.  The
  17816. load and store commands don't do that.  You need some sort of semaphore to
  17817. indicate that someone has the script "checked out".  I'd probably use the
  17818. file name.  Rename it from foo to foo.lock before reading the script.  If
  17819. you fail to rename it, then someone already has it renamed and you have to
  17820. wait.  If you succeed, then keep going.  Simple and effective.
  17821.  
  17822. Sounds like this could done more generally with a semaphore osax too.  It
  17823. would be easy.  It could take 1 thru 32 as a semaphore number along with a
  17824. boolean for setting or clearing.  It could return a boolean telling whether
  17825. or not that semaphore is set or clear.  This would be a prime use for the
  17826. refcon bits.  No disposal necessary.  I wonder what else it could be good
  17827. for?  Whine at me if you need something like this, otherwise it'll wait
  17828. until I need it.  ;)
  17829.  
  17830. > Is there a commercial product that
  17831. > lets you create script projects that will build a script from
  17832. > several files?
  17833.  
  17834. Oh, and before I forget, ScriptServer isn't commercial, but it is
  17835. shareware, so it is supported and guarenteed.  That's right, all of my
  17836. shareware comes with a money back guarentee.  It is easy to tell that you
  17837. aren't going to need it since you don't pay until it _does_ work.  Don't
  17838. let the fact that ScriptServer is designated alpha fool you.  I could have
  17839. simply slammed it to a release version number, but I have a lot more stuff
  17840. that I want to add to it, and I will.  The parts that are there are solid
  17841. though.  We've been using it at my work to build our Apple products and I
  17842. have friends at Apple using it for their projects.  ScriptServer works and
  17843. it works well.
  17844.  
  17845. Jon
  17846. =========================================================================
  17847. Date:         Fri, 26 Aug 1994 00:11:56 -0700
  17848. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17849. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17850. From:         Jon Pugh <jonpugh@NETCOM.COM>
  17851. Subject:      Re: How to quit one script and launch another?
  17852.  
  17853. Lawrence D'Oliveiro <LDO@WAIKATO.AC.NZ> wrote:
  17854. >
  17855. >Erik Smith <ersmith@UCSD.EDU> writes:
  17856. >
  17857. >>I want script application A to launch script application B and then
  17858. >>completely quit.  Using combinations of launch and run, the best I can do
  17859. >>is call B as a subroutine.  I want to do this so that script A can call
  17860. >>script B to update A from a file server and then re-launch A.  In the DOS
  17861. >>batch file world you would use CALL.
  17862. >
  17863. >You could have B tell A to quit.
  17864.  
  17865. I think you missed the mistake here, Lawrence.
  17866.  
  17867. System 7 NEVER calls apps as subroutines.  It is impossible to make it do
  17868. so.  Therefore, I believe that Erik is simply mistaken and I'll bet I know
  17869. why.
  17870.  
  17871. If you were to write a simple script that had only a repeat loop in it, you
  17872. could launch it and it would display this behavior.  A repeat loop would
  17873. block the launcher from getting time by burning cycles without calling
  17874. WaitNextEvent.  This is why it appears that it is running as a subroutine.
  17875. If you made it do some simple AppleEvent in the loop (call an osax or an
  17876. app) then the launcher would get time and quit before the repeat loop
  17877. finished.
  17878.  
  17879. Well, that's my guess anyhow.
  17880.  
  17881. Jon
  17882. =========================================================================
  17883. Date:         Fri, 26 Aug 1994 15:39:20 +0100
  17884. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17885. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17886. From:         Judith Kertisz SUCHARD <suchard@CNAM.FR>
  17887. Subject:      ScriptServer
  17888.  
  17889. >Oh, and before I forget, ScriptServer isn't commercial, but it is
  17890. >shareware, so it is supported and guarenteed.
  17891.  
  17892. What does it do, can we have some details on it.
  17893. (and what it does, and how to order it)
  17894.  
  17895. thanks !!!
  17896.  
  17897. Chaleureusement,
  17898.  
  17899. Judith
  17900. _________________________________________
  17901. Judith Kertisz Suchard                  suchard@cnam.cnam.fr
  17902. C.N.A.M. Labo Informatique             AppleLink: cnam
  17903. 25, rue Mont Cenis                         Tel:(1) 40 27 25 57
  17904. 75018 Paris, France                     Fax: 40 27 27 72
  17905. _________________________________________
  17906. "La simpliciti, c'est le fruit d'un long effort"
  17907. =========================================================================
  17908. Date:         Fri, 26 Aug 1994 09:37:52 -0600
  17909. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17910. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17911. From:         Greg Hiner <hiner@MAIL.UTEXAS.EDU>
  17912. Subject:      Eudora - Receiving raw Apple Events in scripts
  17913.  
  17914. >> I am working on a mail parsing and announcement script which should run in
  17915. >> the background and utilize the Eudora notification event "ENot".
  17916. >
  17917. >Aren't we all. :-|
  17918. >
  17919. >> on Appleevent class CSOm event ENot
  17920. >
  17921.  
  17922. As I understand the Eudora AppleEvent docs - isn't Eudora supposed to
  17923. attach a list of new messages to the notification event - .
  17924.  
  17925. Mail Notification Event
  17926. Eudora uses this event to notify a client application that mail has
  17927. arrived.  It also may be generated by the user, if he wants the client  to
  17928. (re)process selected messages.
  17929. Class:  kEudoraSuite
  17930. Event:  kEuNotify
  17931.  
  17932. Parameters:
  17933. keyEuMessageList
  17934.  - typeAEDescList  List of message objects of newly-arrived messages.
  17935.  
  17936.  
  17937. and if so - how do you get and use that list with AppleScript. The sorter I
  17938. wrote uses the notification event to start it but then falls back on
  17939. checking every message in the In Box looking for ones with status = 1 (ie
  17940. new messages). Things would be a lot simplier if I could get a list from
  17941. Eudora that told me exactly which messages were new so I didn't have to go
  17942. looking for them.
  17943.  
  17944. At this point I have another launcher program written in C that catches the
  17945. notification event and launches the AppleScript sorter in the background. I
  17946. know this may be rather perverse too but I can't find a way to get the
  17947. AppleScript sorter to run in the background on notification. Is there a
  17948. way?
  17949.  
  17950.  
  17951. Best-
  17952.  
  17953.  
  17954. Greg
  17955. =========================================================================
  17956. Date:         Fri, 26 Aug 1994 10:49:18 EDT
  17957. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17958. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17959. From:         Danny Goodman <DGoodman@AOL.COM>
  17960. Subject:      Re: Finder Reference
  17961.  
  17962. >It's true, "file" doesn't work, but "alias" does! I tried:
  17963.  
  17964. In your example, it works, but not when the alias reference is used to fulfil
  17965. a location parameter for commands such as Copy or Make Alias.
  17966.  
  17967. Danny
  17968. =========================================================================
  17969. Date:         Fri, 26 Aug 1994 07:53:57 -0700
  17970. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17971. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17972. From:         Jeff Mealiffe <mealiffe@NETCOM.COM>
  17973. Subject:      Scripting Now Up-To-Date
  17974. In-Reply-To:  <199408260459.VAA22282@mail.netcom.com>
  17975.  
  17976. I would like to implement a gateway between our UNIX system and Now
  17977. Up-To-Date using the Script Daemon application from Peter Lewis.  Does
  17978. anyone out there have some idea as to what script commands I need to send
  17979. Now Up-To-Date to get a listing of every event (with name, description,
  17980. event type, and everything else) in the current month and next month?
  17981. This info would need to be returned in some sort of delimited format that
  17982. could then be processed by a unix shell script utilizing grep and cut.
  17983. Please let me know if you have any ideas.
  17984.  
  17985. Thanks,
  17986. -jeff
  17987.  
  17988. Jeff Mealiffe                         |       Internet: mealiffe@netcom.com
  17989. Macintosh Consultant/System Admin     |         eWorld:               JeffM
  17990. Internet DNS/Mail/News Admin          |          voice:      (619) 286-2777
  17991. Lewis Junior High School              |          pager:      (619) 494-7403
  17992. San Diego City Schools                |            fax:      (619) 582-7804
  17993. ** For Information About The Lewis Jr. High Educational Foundation, send **
  17994. ** e-mail to lewis@cerf.net with a subject of "mailserv send foundation" **
  17995. **     (without the quotes).  The system will respond automatically.     **
  17996. =========================================================================
  17997. Date:         Fri, 26 Aug 1994 11:06:04 EDT
  17998. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  17999. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18000. From:         INRA000 <INRA@MUSICB.MCGILL.CA>
  18001. Subject:      Re[2]: Receiving raw Apple Events in scripts
  18002. In-Reply-To:  In reply to your message of THU 25 AUG 1994 16:13:36 EDT
  18003.  
  18004. >Yes and no.  It SEEMS as if you should be able to write soemthing like
  18005. >on notice -- the 2.1 notification message
  18006. >
  18007. >just like you write "on open"
  18008. >
  18009. >But it compiles as a procedure and NOT as an event handler.  (To see the
  18010. >difference, compile "on open" with special formatting for 'variables.')
  18011. [...]
  18012. >It's ugly and I don't like it, but nobody's been able to tell me (or Steve)
  18013. >how to tell Applescript that notice is NOT a variable but the name of an
  18014. >event.
  18015.  
  18016.     A product of mine, File Tracker, uses "Attached" scripts and can
  18017. send notifications, and thus requires the ability to write scripts with
  18018. handlers for its Apple Events. The only solution I could come up with
  18019. (Which I'm currently using) was to write a dummy OSAX that contained the
  18020. 'aete' resource for the necessary events and stick it in the System
  18021. Folder. In this way, the OSAX's terminology is added to the System's,
  18022. and one can successfully write stuff like 'on mySpecialEvent myParam
  18023. theParam' in the Script Editor and it will compile correctly. I call the
  18024. OSAX an 'enabler' and point out in the docs that it has to be in the
  18025. Scripting Extensions folder for the Script Editor to recognize FT's
  18026. terminology in scripts. Seems to work pretty well.
  18027.  
  18028.     This, of course, isn't the optimal solution, and I would be very
  18029. interested in hearing if someone has a better idea.
  18030.  
  18031.     Cheers,
  18032.  
  18033.     Mark Aiken
  18034.     inra@musicb.mcgill.ca
  18035. =========================================================================
  18036. Date:         Fri, 26 Aug 1994 11:15:34 -0400
  18037. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18038. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18039. From:         David Brown <dlb1@SEQUOIA.LLE.ROCHESTER.EDU>
  18040. Subject:      KeyQuencer and keypad codes
  18041.  
  18042.         I'm trying out KeyQuencer to automate part of a vt100 session.
  18043. KeyQuencer looks to be very useful, but I'm having a problem getting it to
  18044. generate a keypad press.  The Key command appears to allow use of keycodes,
  18045. but I have no idea what the codes are or what the syntax is (it looks like
  18046. I need to specify an ascii code with a keycode).  Has anyone done this
  18047. recently?  I tried sending the vt100 Esc code equivalent, but I can't get
  18048. that to work either.  I'm using Telnet 2.6.
  18049.  
  18050. -- Dave
  18051. =========================================================================
  18052. Date:         Fri, 26 Aug 1994 11:48:44 -0400
  18053. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18054. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18055. From:         John Schettino <js12@GTE.COM>
  18056. Subject:      Re: Scripting Now Up-To-Date
  18057.  
  18058. >I would like to implement a gateway between our UNIX system and Now
  18059. >Up-To-Date using the Script Daemon application from Peter Lewis.  Does
  18060. >anyone out there have some idea as to what script commands I need to send
  18061. >Now Up-To-Date to get a listing of every event (with name, description,
  18062. >event type, and everything else) in the current month and next month?
  18063. >This info would need to be returned in some sort of delimited format that
  18064. >could then be processed by a unix shell script utilizing grep and cut.
  18065. >Please let me know if you have any ideas.
  18066.  
  18067. Oddly enough, you can look on gaea.kgs.ukans.edu in
  18068. /applescripts/scripts/Newton_Scripts
  18069.  
  18070. I have a nice export script for NUD called 'export calendar to Newton' that
  18071. does 99% of what you want. Check it out.
  18072.  
  18073. - john
  18074.  
  18075. -----------------------------------------
  18076. js12@gte.com             GTE Laboratories
  18077. John Schettino                Waltham, MA
  18078. =========================================================================
  18079. Date:         Fri, 26 Aug 1994 11:17:03 -0500
  18080. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18081. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18082. From:         Fred Terry <pfterry@LKS.CSI.COM>
  18083. Subject:      Re: Scripting Now Up-To-Date
  18084. In-Reply-To:  Your message of "Fri, 26 Aug 94 11:48:44 EDT"
  18085.  
  18086. >>I would like to implement a gateway between our UNIX system and Now
  18087. >>Up-To-Date using the Script Daemon application from Peter Lewis.  Does
  18088. >>anyone out there have some idea as to what script commands I need to send
  18089. >>Now Up-To-Date to get a listing of every event (with name, description,
  18090. >>event type, and everything else) in the current month and next month?
  18091. >>This info would need to be returned in some sort of delimited format that
  18092. >>could then be processed by a unix shell script utilizing grep and cut.
  18093. >>Please let me know if you have any ideas.
  18094. >
  18095. >Oddly enough, you can look on gaea.kgs.ukans.edu in
  18096. >/applescripts/scripts/Newton_Scripts
  18097. >
  18098. >I have a nice export script for NUD called 'export calendar to Newton' that
  18099. >does 99% of what you want. Check it out.
  18100.  
  18101. You might also want to check
  18102.  
  18103. ftp://gaea.kgs.ukans.edu/applescript/scripts/NUDSamples.hqx
  18104.  
  18105. Have fun.
  18106.  
  18107. pf
  18108. =========================================================================
  18109. Date:         Fri, 26 Aug 1994 12:25:19 -0400
  18110. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18111. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18112. From:         Kiran Wagle <groo@NETCOM.COM>
  18113. Subject:      Re[2]: Receiving raw Apple Events in scripts
  18114.  
  18115. On 8/26/94, INRA000 wrote about event handlers:
  18116.  
  18117. > write a dummy OSAX that contained the 'aete' resource for the necessary
  18118. > events and stick it in the System Folder. In this way, the OSAX's
  18119. > terminology is added to the System's, and one can successfully write stuff
  18120. > like 'on mySpecialEvent myParam theParam' in the Script Editor and it will
  18121. > compile correctly.
  18122.  
  18123. Just a few moments ago, in the shower preparing to leave for the Midwest
  18124. (JUST as we get an interesting topic! of course) I was wondering if exactly
  18125. this approach would work.
  18126.  
  18127. >     This, of course, isn't the optimal solution, and I would be very
  18128. > interested in hearing if someone has a better idea.
  18129.  
  18130. But, it WORKS.  And AppleScript as wrtten does not.  (Furthermore, i think
  18131. this proves my claim that there really IS no way to write event handlers IN
  18132. AS.  The problem I've been running up against is that therer seems to be no
  18133. way to tell AS that something is NOT a procedure.)
  18134.  
  18135. This kind of fix shouldn't be neccesary, tho--AppleScript should be able to
  18136. provide the syntactic sugar if the user TELLS it to inside a script.  The
  18137. necessary information is right inside the application already, innit?
  18138.  
  18139. Syntax should prevent the user from ever having to write <<Event mumble>>
  18140. in a script--they claim this is a high-level language!  I wish AS had a
  18141. proper (or even a crude) syntactic extension facility--it would be really
  18142. nice if, when one wanted a case statement, one could just WRITE it by
  18143. extending the syntax.  (A good compiler and a well-written syntactic
  18144. extension and this approach adds NO overhead to the resulting code.)  I got
  18145. really spoiled by writing in Scheme, I guess.  <grin>
  18146.  
  18147. Can you post details on what you did and how you did it?
  18148. I know zilch about aetes--yet.
  18149.  
  18150. ~ Kiran
  18151.  
  18152. --
  18153. 6216 41st Avenue Hyattsville MD 20782 301/779-0756 <groo@netcom.com>
  18154. =========================================================================
  18155. Date:         Fri, 26 Aug 1994 11:37:59 -0700
  18156. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18157. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18158. From:         Mike Shaff <shaff@QUILTY.STANFORD.EDU>
  18159. Subject:      Quit from applets
  18160.  
  18161. Greetings,
  18162.  
  18163. AppleScript with its varried syntax and extensions is a blast, in all senses of
  18164. the word.  I have an applet which remains open for the vast duration of its
  18165. life.  It is basically a network interface for a small database.  When it comes
  18166. time for it to quit, I want to have a piece of conditional code:
  18167.  
  18168. on quit {}
  18169.         if gProjectDatabase = false then
  18170.                 StopRegistration
  18171.         end if
  18172.  
  18173.         -- pass quit
  18174. end quit
  18175.  
  18176. How do I refer to 'super' quit?
  18177.  
  18178. Humbled,
  18179.  
  18180. Michael
  18181. =========================================================================
  18182. Date:         Fri, 26 Aug 1994 14:21:52 -0500
  18183. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18184. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18185. From:         Fred Terry <pfterry@LKS.CSI.COM>
  18186. Subject:      ScriptBase
  18187.  
  18188. Several of us have mentioned ScriptBase from Main Event. I requested a better
  18189. description, and I'll append what I got. I'll post a press release on gaea
  18190. whenever I get it decodeded properly. I think it has the price in it.
  18191.  
  18192. Enjoy.
  18193. pf
  18194.  
  18195. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18196.  
  18197. ScriptBase is a database for storing persistent variables and objects to be
  18198. made available for global access within AppleScript scripts.
  18199.  
  18200. Once installed, the database becomes part of the AppleScript system, adding a
  18201. set of commands to the basic AppleScript vocabulary.  Retrieving the objects is
  18202. simple using AppleScript's natural-language syntax and structure.  Objects can
  18203. be values from either AppleScript variables or scriptable applications.
  18204. Objects stored and retrieved in ScriptBase can be accessible any time from any
  18205. script anywhere  (applets/droplets, HyperCard, FaceSpan, imbedded scripts) on
  18206. the user's computer. These objects can be of any type, including numbers,
  18207. character strings, lists, records, scripts, and references to disks, files,
  18208. folders, as well as abstract raw data, to name just a few.
  18209.  
  18210. ScriptBase can be used to maintain system-wide settings, such as sets of
  18211. preferences, and paths to frequently-used files or folders. Complex
  18212. installations can be made easier by organizing data and scripts within the
  18213. database's structure.
  18214.  
  18215.  
  18216. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  18217. Fred Terry  Cadence Design Systems  pfterry@lks.csi.com  +1 913 841 1283
  18218. =========================================================================
  18219. Date:         Fri, 26 Aug 1994 15:39:14 -0400
  18220. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18221. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18222. From:         Chris LeCroy <lecroy@IDS.NET>
  18223. Subject:      FileMaker versions
  18224.  
  18225. Hi,
  18226.  
  18227. I'll spare you all the heated diatribe on the topic of Claris' lame habit
  18228. of changing the 'aete' every release and just ask questions.
  18229.  
  18230. I'm in a position where I have to write scripts that will function
  18231. regardless of the version of FileMaker Pro currently being executed.
  18232.  
  18233. Asking for the application's version property returns the number 131092 in
  18234. versions 2.1v2 and 2.1v3, so I haven't been able to rely upon that.
  18235.  
  18236. What I've done in the past is to figure out what was broken in prior
  18237. versions of FMP, and execute bits of code until it didn't fail.  For
  18238. example 2.0 didn't support "Count windows", 2.1v1 doesn't support "get
  18239. version", etc.
  18240.  
  18241. With the release of 2.1v3, I haven't been able to find anything at the
  18242. application level that will cause a failure in 2.1v2 and not in 2.1v3.
  18243. Unfortunately, there's no real guarantee that I have a database open, so I
  18244. can't take advantage of the fact that numeric ID properties and things like
  18245. will fail in 2.1v2 when databases are open.
  18246.  
  18247. Any suggestions?  Am I wrong about the version property not working?  Is
  18248. there a better way to deal with this problem?  I suspect I'll be adding a
  18249. 'vers' reading osax to my app.  At least that would solve the problem
  18250. permanently... and I probably could have been mostly done in the time it's
  18251. taken to write this posting. ;-)
  18252.  
  18253. Somewhat off the topic, was there ever a consensus on how we're all going
  18254. to deal with naming conflicts between 'aete's, osaxen, etc?  Since
  18255. apparently you can do "tell document ..." to point to a specific osax, is
  18256. it really really even a problem?  I just got done playing with an app that
  18257. used the word "file" as its "table" term. It caused problems when
  18258. attempting to use file specifications inside a "tell application..." block.
  18259.  
  18260.  
  18261. Thanks for any pointers...
  18262.  
  18263.  
  18264. ---
  18265. Chris LeCroy - lecroy@ids.net
  18266. SouthBeach Software Corp.
  18267. =========================================================================
  18268. Date:         Fri, 26 Aug 1994 16:10:06 EDT
  18269. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18270. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18271. From:         INRA000 <INRA@MUSICB.MCGILL.CA>
  18272. Subject:      Re: Receiving raw Apple Events in scripts
  18273. In-Reply-To:  In reply to your message of FRI 26 AUG 1994 04:25:19 EDT
  18274.  
  18275. >On 8/26/94, INRA000 wrote about event handlers:
  18276. >But, it WORKS.  And AppleScript as wrtten does not.  (Furthermore, i think
  18277. >this proves my claim that there really IS no way to write event handlers IN
  18278. >AS.  The problem I've been running up against is that therer seems to be no
  18279. >way to tell AS that something is NOT a procedure.)
  18280. [Zap]
  18281. >Can you post details on what you did and how you did it?
  18282. >I know zilch about aetes--yet.
  18283.  
  18284.     An 'aete' resource is an Apple Event TErminology resource, the
  18285. resource that attaches AppleScript's internal four-letter codes for
  18286. event and parameter types to human-readable terms that can be written
  18287. in scripts. The problem we're running into here is that AS seems to only
  18288. consider terminology that is part of the System aete (i.e, terminology
  18289. that the System recognizes in virtue of its built-in capabilities as
  18290. well as any add-on capabilities provided by Scripting Extensions
  18291. (OSAXen)) when compiling event handlers. As a result, one can't write
  18292. a handler for an event that is defined by an Application and not nor-
  18293. mally recognized by the System, at least not in the Script Editor.
  18294.  
  18295.     The workaround I used was to write a dummy OSAX (Scripting
  18296. Extension) that doesn't actually contain any working code, but that
  18297. *does* contain the prescribed 'aete' resource for OSAXen. By dropping
  18298. this dummy OSAX in your System Folder, its terminology is added to the
  18299. System's, and voila, the Script Editor will compile event handlers for
  18300. the events defined in the OSAX's 'aete' resource.
  18301.  
  18302.     I understand, although I have never written an app to test this
  18303. myself, that apps that allow you to write scripts from within them,
  18304. such as a hypothetical attachable and tinkerable app, don't have this
  18305. problem because the Component Manager consults the app's 'aete'
  18306. resource when compiling, even in the case of event handlers. I think
  18307. Apple only considered the case of attachable/tinkerable apps when
  18308. setting things up their current way, and didn't realize that the cur-
  18309. rent situation creates a problems for applications such as Eudora and
  18310. my own File Tracker, that rely on AS applets containing handlers for
  18311. special events.
  18312.  
  18313.     Another solution to this problem would be to ship a custom Script
  18314. Editor with apps such as FT and Eudora, that contain the necessary
  18315. terminology and can therefore serve as tools for writing scripts with
  18316. the necessary event handlers. ;-)
  18317.  
  18318.     Cheers,
  18319.  
  18320.     Mark Aiken
  18321.     inra@musicb.mcgill.ca
  18322. =========================================================================
  18323. Date:         Fri, 26 Aug 1994 13:20:40 -0800
  18324. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18325. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18326. From:         Peter Speck <speck@INTERVAL.COM>
  18327. Subject:      Re: Receiving raw Apple Events in scripts
  18328.  
  18329. >    The workaround I used was to write a dummy OSAX (Scripting
  18330. >Extension) that doesn't actually contain any working code, but that
  18331. >*does* contain the prescribed 'aete' resource for OSAXen. By dropping
  18332. >this dummy OSAX in your System Folder, its terminology is added to the
  18333. >System's, and voila, the Script Editor will compile event handlers for
  18334. >the events defined in the OSAX's 'aete' resource.
  18335.  
  18336.  
  18337. I have had somewhat the same problem.
  18338.  
  18339. If I write
  18340.  
  18341. copy (MagicFunction()) to appleRef
  18342. tell appleRef
  18343.    set pan 3 of mixer 2 to 0.2
  18344. end tell
  18345.  
  18346. then it won't compile because it doesn't know the aete of my special app.
  18347.  
  18348. There should be some extension, like:
  18349.  
  18350. copy (MagicFunction()) to appleRef
  18351. with AppleScriptDictionary of "MagicMixer"
  18352.   tell appleRef
  18353.      set pan 3 of mixer 2 to 0.2
  18354.   end tell
  18355. end AppleScriptDictionary
  18356.  
  18357. ---
  18358. Peter Speck
  18359.                              (And it was eleven o'clock
  18360.                               which was time for a little something)
  18361. =========================================================================
  18362. Date:         Fri, 26 Aug 1994 14:48:10 -0700
  18363. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18364. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18365. From:         Mike Shaff <shaff@QUILTY.STANFORD.EDU>
  18366. Subject:      Cooperating with apps
  18367.  
  18368. Greetings,
  18369.  
  18370. Pity the script writer!  The task of cooperating with applications becomes such
  18371. a tiresome detail.  Does anyone know if Adobe plans on recognizing OSA?
  18372.  
  18373. I would have thought that activate was not dependent on an application's good
  18374. behaviour.  Not apparently so:
  18375.  
  18376. activate application "Premiere @ 18Mb"
  18377.  
  18378. times out.
  18379.  
  18380. Is there a more robust way of accomplishing a context switch?
  18381.  
  18382. Thanks!
  18383.  
  18384. Michael
  18385. =========================================================================
  18386. Date:         Fri, 26 Aug 1994 16:32:18 -0700
  18387. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18388. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18389. From:         Derrick Schneider <derrick@NETCOM.COM>
  18390. Subject:      Re: Quit from applets
  18391. In-Reply-To:  <199408262012.NAA15951@mail3.netcom.com>
  18392.  
  18393. On Fri, 26 Aug 1994, Mike Shaff wrote:
  18394.  
  18395. > life.  It is basically a network interface for a small database.  When it come
  18396. s
  18397. > time for it to quit, I want to have a piece of conditional code:
  18398.  
  18399. on quit()
  18400. end quit
  18401.  
  18402. should work.
  18403.  
  18404. Derrick
  18405. =========================================================================
  18406. Date:         Fri, 26 Aug 1994 16:41:29 -0800
  18407. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18408. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18409. From:         Brian Hall <mspace@NETCOM.COM>
  18410. Subject:      receiving raw events/eudora
  18411.  
  18412. >Date:    Thu, 25 Aug 1994 17:20:30 -0700
  18413. >From:    Roel Vertegaal <R.Vertegaal@BSK.UTWENTE.NL>
  18414. >Subject: Receiving raw Apple Events in scripts
  18415. >
  18416. >I am working on a mail parsing and announcement script which should run in
  18417. >the background and utilize the Eudora notification event "ENot".
  18418. >I would like to write something like:
  18419. >
  18420. >on Appleevent class CSOm event ENot
  18421. >-- announce something
  18422. >end
  18423. >
  18424. >Is this possible and what is the correct syntax?
  18425.  
  18426. As far as I can tell, this does not work.  I have been in contact with
  18427. several people via e-mail that are also trying to do this.  ARGH!
  18428.  
  18429. For the moment, my scripts poll eudora - yuck!  On the other hand, what
  18430. they do is pretty cool! (forward mail to text pager with some rules).
  18431.  
  18432. __________________________________________________________________________
  18433. Mark/Space Softworks                                    voice 408-293-7299
  18434. 111 West Saint John, 2nd Floor                            fax 408-293-7298
  18435. San Jose, CA 95113                                        bbs 408-293-7290
  18436.  
  18437. Macintosh connectivity software:               Internet: mspace@netcom.com
  18438. Communicate, ZMODEM Tool, PageNOW!               AppleLink, AOL: MARKSPACE
  18439.                   Goodies at ftp.netcom.com in pub/mspace
  18440. =========================================================================
  18441. Date:         Fri, 26 Aug 1994 21:04:27 -0300
  18442. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18443. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18444. From:         Bill Hutten <bhutten@FOX.NSTN.NS.CA>
  18445. Subject:      Getting custom icons in AppleScript
  18446.  
  18447. I'm writing a script that has to get the "preview" icons from files saved
  18448. in PhotoShop. A little ResEdit work reveals that these custom icons are
  18449. stored in icl8 resource -16455 in each PhotoShop file.
  18450.  
  18451. How do I retrieve this resource? Do I need an osax? Ideally, I'd like to be
  18452. able to convert the icl8 to a PICT.....
  18453.  
  18454. Any help appreciated, I'm new at this AppleScript game...
  18455.  
  18456.  
  18457.  
  18458. - bill
  18459. =========================================================================
  18460. Date:         Fri, 26 Aug 1994 17:43:07 -0700
  18461. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18462. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18463. From:         Eric Gorr <ericg@CS.UOREGON.EDU>
  18464. Subject:      Apple Script Books
  18465.  
  18466. Are there any books on apple script that people would recommend?
  18467.  
  18468.  
  18469. ===Eric Gorr================ericg@cs.uoregon.edu===========aka MystryMan===
  18470. _____
  18471. |\ /| * Invincibility is in oneself, vulnerability is in the opponent
  18472. | O | * Therefore the considerations of the intelligent always include both
  18473. |/_\|   benefit and harm (Sun Tzu)
  18474.  
  18475. #include <standard.disclamer>
  18476. =====Insults, like violence, are the last resort of the incompetent...=====
  18477. =========================================================================
  18478. Date:         Fri, 26 Aug 1994 18:08:05 -0700
  18479. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18480. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18481. From:         Mike Shaff <shaff@QUILTY.STANFORD.EDU>
  18482. Subject:      Getting custom icons in AppleScript
  18483. In-Reply-To:  Bill Hutten's message of Fri,
  18484.               26 Aug 1994 21:04:27 -0300
  18485.               <9408270020.AA04509@quilty.Stanford.EDU>
  18486.  
  18487. Greetings,
  18488.  
  18489. Bill Hutten wrote:
  18490.  
  18491.         I'm writing a script that has to get the "preview" icons from files
  18492.         saved in PhotoShop. A little ResEdit work reveals that these custom
  18493.         icons are stored in icl8 resource -16455 in each PhotoShop file.
  18494.  
  18495.         How do I retrieve this resource? Do I need an osax? Ideally, I'd like
  18496.         to be able to convert the icl8 to a PICT.....
  18497.  
  18498. I am also interested in the results of your quest.  I am building a video
  18499. project manager and one of the issues I am looking to cover is 'orphan' files.
  18500. Files created or digitized by the user which have been saved into an
  18501. application, system, or otherwise unintended folder.  Showing a preview icon
  18502. (if available) is a meaningful addition.
  18503.  
  18504. You will find the GTQ library on gaea.kgs.ukans.edu (this ftp server will
  18505. become a frequent mining site for you).  It has:
  18506.  
  18507. Extract Resource
  18508.  
  18509. and other resource manipulators.  If this is part of an dialog interface then
  18510. perhaps Dialog Runner (also at gaea) could be cajoled into displaying the icl8?
  18511.  
  18512. I would value some more experienced 'connectors' comments...
  18513.  
  18514. Michael
  18515. =========================================================================
  18516. Date:         Fri, 26 Aug 1994 18:19:51 -0700
  18517. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18518. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18519. From:         Mike Shaff <shaff@QUILTY.STANFORD.EDU>
  18520. Subject:      Walk folders
  18521.  
  18522. Greetings,
  18523.  
  18524. I am not certain how to phrase my question.  With that caveat:
  18525.  
  18526. What are the performance characteristics of the Walk Folder command from Jon's
  18527. Commands (found on gaea)?
  18528.  
  18529. I am more interested in its 'feel' than its theoretical nature.
  18530.  
  18531. Thanks.
  18532.  
  18533. Michael
  18534. =========================================================================
  18535. Date:         Sat, 27 Aug 1994 00:36:54 -0700
  18536. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18537. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18538. From:         Jon Pugh <jonpugh@NETCOM.COM>
  18539. Subject:      Re: Receiving raw Apple Events in scripts
  18540.  
  18541. Kiran Wagle <groo@NETCOM.COM> wrote:
  18542. >
  18543. >If anyone has an example of an event handler for an event other than the
  18544. >four required ones, I haven't seen it.
  18545. >
  18546. >But you CAN write a handler if you use those pesky angle brackets.
  18547. >
  18548. >on <<event CSOmeNot>>
  18549. >do stuff
  18550. >end
  18551. >
  18552. >--the angle brackets are special characters.
  18553. >
  18554. >It's ugly and I don't like it, but nobody's been able to tell me (or Steve)
  18555. >how to tell Applescript that notice is NOT a variable but the name of an
  18556. >event.
  18557.  
  18558. Well, I know how, but it's not quite the answer you were expecting.  In
  18559. fact, you are correct in that AppleScript can't handle general AppleEvents
  18560. worth a damn.  Mind you, I haven't actually done this, but I do know what
  18561. is involved.
  18562.  
  18563. First off, you don't send some custom event like CSOmeNot.  You send an
  18564. event that AppleScript knows, the Subroutine event.  It is listed in the
  18565. AppleScript suite document which is in the Registry folder of the
  18566. AppleScript 1.0 and 1.1 CDs.
  18567.  
  18568. Essentially, the subroutine event includes a lowercase string for the
  18569. procedure name and a record of parameters.  You send "notify" and the
  18570. parameters.  Now you write "on notify" in your script and everything works.
  18571.  
  18572.                                 -=-=-=-=-=-=-=-
  18573.  
  18574. Mark Aiken <inra@musicb.mcgill.ca> wrote:
  18575. >    I understand, although I have never written an app to test this
  18576. >myself, that apps that allow you to write scripts from within them,
  18577. >such as a hypothetical attachable and tinkerable app, don't have this
  18578. >problem because the Component Manager consults the app's 'aete'
  18579. >resource when compiling, even in the case of event handlers. I think
  18580. >Apple only considered the case of attachable/tinkerable apps when
  18581. >setting things up their current way, and didn't realize that the cur-
  18582. >rent situation creates a problems for applications such as Eudora and
  18583. >my own File Tracker, that rely on AS applets containing handlers for
  18584. >special events.
  18585. >
  18586. >    Another solution to this problem would be to ship a custom Script
  18587. >Editor with apps such as FT and Eudora, that contain the necessary
  18588. >terminology and can therefore serve as tools for writing scripts with
  18589. >the necessary event handlers. ;-)
  18590.  
  18591. The component manager doesn't do squat except route OSA calls to the
  18592. AppleScript component.  The AppleScript component is the one who sends an
  18593. event to grab an aete and use it while compiling.  Just nitpicking.  ;)
  18594.  
  18595. As for the "hypothetical" Hypercard, it uses these subroutine events for
  18596. all of its internal messages.  I recommend that you use them too.  That way
  18597. you could even write your notification in HyperTalk, and you won't have to
  18598. invent or register your own 4 character codes either.
  18599.  
  18600.                                 -=-=-=-=-=-=-=-
  18601.  
  18602. Here's the relevant passage from the AppleScript Suite document from the
  18603. 1.0 CD (my 1.1 CD is at the cleaners ;).  All of the constants are defined
  18604. in AppleScript.h.
  18605.  
  18606. Jon
  18607.  
  18608.                                 -=-=-=-=-=-=-=-
  18609.  
  18610. Subroutine Call - Call a user-defined subroutine
  18611.  
  18612. The subroutine event is sent for calls to user-defined subroutines.  They
  18613. contain the name of the event as a text string, and any parameters for the
  18614. event.  A standard set of prepositional parameters are available.
  18615.  
  18616. Event Class     kASAppleScriptSuite     'ascr'
  18617. Event ID        kASSubroutineEvent      'psbr'
  18618.  
  18619. Parameters
  18620.  
  18621. keyDirectObject
  18622.         Description:            The target, or list of arguments
  18623.         Descriptor Type:        typeObjectSpecifier or typeAEList
  18624.         Required or Optional?   Optional
  18625. keyASSubroutineName
  18626.         Description:            The subroutine name
  18627.         Descriptor Type:        typeChar
  18628.         Required or Optional?   Required
  18629. keyASPrepositionAt
  18630. keyASPrepositionAt
  18631. keyASPrepositionIn
  18632. keyASPrepositionFrom
  18633. keyASPrepositionFor
  18634. keyASPrepositionTo
  18635. keyASPrepositionThru
  18636. keyASPrepositionThrough
  18637. keyASPrepositionBy
  18638. keyASPrepositionOn
  18639. keyASPrepositionInto
  18640. keyASPrepositionOnto
  18641. keyASPrepositionBetween
  18642. keyASPrepositionAgainst
  18643. keyASPrepositionOutOf
  18644. keyASPrepositionInsteadOf
  18645. keyASPrepositionAsideFrom
  18646. keyASPrepositionAround
  18647. keyASPrepositionBeside
  18648. keyASPrepositionBeneath
  18649. keyASPrepositionUnder
  18650. keyASPrepositionOver
  18651. keyASPrepositionAbove
  18652. keyASPrepositionBelow
  18653. keyASPrepositionApartFrom
  18654. keyASPrepositionAbout
  18655. keyASPrepositionSince
  18656. keyASPrepositionUntil
  18657.         Description:            Named prepositional parameters
  18658.         Descriptor Type:        typeWildCard
  18659.         Required or Optional?   Optional
  18660. keyASUserRecordFields
  18661.         Description:            Parameters with user-defined names
  18662.         Descriptor Type:        typeUserRecordFields
  18663.         Required or Optional?   Optional
  18664.  
  18665. Reply Parameters
  18666.  
  18667. keyAEResult
  18668.         Description:            The result of the subroutine call
  18669.         Descriptor Type:        typeWildCard
  18670.         Required or Optional?   Optional
  18671. (see Replies section for additional error reply parameters)
  18672.  
  18673.  
  18674. typeUserRecordFields - List of user-defined record fields
  18675.  
  18676. A typeUserRecordFields descriptor record specifies a list of user-defined
  18677. record fields - their names and values.  The list contains alternating name
  18678. value pairs, where each name is typeIntlText and each value is of any type.
  18679.  
  18680.  
  18681. Data Size       Variable
  18682. =========================================================================
  18683. Date:         Sat, 27 Aug 1994 00:37:03 -0700
  18684. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18685. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18686. From:         Jon Pugh <jonpugh@NETCOM.COM>
  18687. Subject:      Re: Quit from applets
  18688.  
  18689. Mike Shaff <shaff@QUILTY.STANFORD.EDU> wrote:
  18690. >
  18691. >on quit {}
  18692. >        if gProjectDatabase = false then
  18693. >                StopRegistration
  18694. >        end if
  18695. >
  18696. >        -- pass quit
  18697. >end quit
  18698. >
  18699. >How do I refer to 'super' quit?
  18700.  
  18701. continue quit
  18702.  
  18703.  
  18704. Remember, if you have a script that you can't quit because you forgot this,
  18705. simply hold down the SHIFT key and your quit handler will not be called.
  18706.  
  18707. Who's got the FAQ?  Is this tip in it?
  18708.  
  18709. Jon
  18710. =========================================================================
  18711. Date:         Sat, 27 Aug 1994 00:37:10 -0700
  18712. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18713. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18714. From:         Jon Pugh <jonpugh@NETCOM.COM>
  18715. Subject:      Re: Getting custom icons in AppleScript
  18716.  
  18717. Bill Hutten <bhutten@FOX.NSTN.NS.CA> wrote:
  18718. >
  18719. >I'm writing a script that has to get the "preview" icons from files saved
  18720. >in PhotoShop. A little ResEdit work reveals that these custom icons are
  18721. >stored in icl8 resource -16455 in each PhotoShop file.
  18722. >
  18723. >How do I retrieve this resource? Do I need an osax? Ideally, I'd like to be
  18724. >able to convert the icl8 to a PICT.....
  18725.  
  18726. Scriptable Finder!
  18727.  
  18728. tell application "Finder"
  18729.     set theIcon to icon of file "foo"
  18730. end tell
  18731.  
  18732. Now what are you going to do with it?  This is an "icon family" data
  18733. record.  It has properties corresponding to the various icon resources.
  18734. You can seperate them with "<<class icl8>> of theIcon" but I don't think
  18735. this really helps.  I don't see any way to make this into a picture, and a
  18736. resource osax wouldn't help since it couldn't make it into a picture
  18737. either.
  18738.  
  18739. I see this as a limitation of the scriptable Finder.  If you do a copy from
  18740. the Get Info dialog, you get a picture too.  Ah well, nothing's perfect.
  18741.  
  18742. Jon
  18743. =========================================================================
  18744. Date:         Sat, 27 Aug 1994 00:37:13 -0700
  18745. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18746. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18747. From:         Jon Pugh <jonpugh@NETCOM.COM>
  18748. Subject:      Re: Walk folders
  18749.  
  18750. Mike Shaff <shaff@QUILTY.STANFORD.EDU> wrote:
  18751. >
  18752. >I am not certain how to phrase my question.  With that caveat:
  18753. >
  18754. >What are the performance characteristics of the Walk Folder command from Jo=
  18755. n's
  18756. >Commands (found on gaea)?
  18757. >
  18758. >I am more interested in its 'feel' than its theoretical nature.
  18759.  
  18760. Well, I was more interested in code simplicity than performance, but I'm
  18761. certain that it out-performs a comparable script.  Nevertheless, I did some
  18762. timing tests. Here's the script:
  18763.  
  18764.  
  18765. script foo
  18766.         property c : 0
  18767.         on open (theFile)
  18768.                 set c to c + 1
  18769.                 return c
  18770.         end open
  18771. end script
  18772.  
  18773. set startTime to current date
  18774. set c to walk folders alias "AppleScript=81:" with script foo
  18775. set endTime to current date
  18776. set secs to endTime - startTime
  18777. {c, secs, c / secs}
  18778.  
  18779.  
  18780. Here are the results:
  18781.  
  18782. files          seconds       files/sec
  18783.   213 (8M)        20            10.7      My Info-Mac junk folder (disk 1)
  18784.   461 (9M)        40            11.5      My AppleScript collectables (disk =
  18785. 1)
  18786.   882 (29M)       53            16.6      My PhotoFlash sources (disk 2)
  18787.   652 (70M)       22            29.6      The AppleScript 1.0 CD
  18788. 15577 (473M)    1301            12.0      All of Disk 1
  18789.  
  18790. Wow!  It's 3 times faster off CD than off my HD?  I don't know why that is.
  18791. I'll investigate, but if anyone wants to email me their results (don't
  18792. reply to the list!), I'll see if they help explain things.  ;)
  18793.  
  18794. Jon
  18795. =========================================================================
  18796. Date:         Sat, 27 Aug 1994 02:00:36 -0700
  18797. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18798. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18799. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  18800. Subject:      Re: Quit from applets
  18801.  
  18802. >Greetings,
  18803. >
  18804. >AppleScript with its varried syntax and extensions is a blast, in all senses of
  18805. >the word.  I have an applet which remains open for the vast duration of its
  18806. >life.  It is basically a network interface for a small database.  When it comes
  18807. >time for it to quit, I want to have a piece of conditional code:
  18808. >
  18809. >on quit {}
  18810. >        if gProjectDatabase = false then
  18811. >                StopRegistration
  18812. >        end if
  18813. >
  18814. >        -- pass quit
  18815. >end quit
  18816.  
  18817. continue quit
  18818.  
  18819. is the way to say the "pass quit" above.
  18820.    --John
  18821.  
  18822. --
  18823. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  18824. When was the last time you checked out the ceiling tiles in a building you
  18825. were in?
  18826. =========================================================================
  18827. Date:         Sat, 27 Aug 1994 02:17:52 -0700
  18828. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18829. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18830. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  18831. Subject:      Re: FileMaker versions
  18832.  
  18833. >Hi,
  18834. >
  18835. >I'll spare you all the heated diatribe on the topic of Claris' lame habit
  18836. >of changing the 'aete' every release and just ask questions.
  18837.  
  18838. As opposed to leaving the 'aete' (or the events described by same) broken?
  18839.  
  18840.  
  18841. >I'm in a position where I have to write scripts that will function
  18842. >regardless of the version of FileMaker Pro currently being executed.
  18843. >
  18844. >Asking for the application's version property returns the number 131092 in
  18845. >versions 2.1v2 and 2.1v3, so I haven't been able to rely upon that.
  18846.  
  18847. Looks like an oversight.  In hex, that's 00020014, which argueably makes
  18848. some sort of sense for one of those versions.
  18849.  
  18850. >What I've done in the past is to figure out what was broken in prior
  18851. >versions of FMP, and execute bits of code until it didn't fail.  For
  18852. >example 2.0 didn't support "Count windows", 2.1v1 doesn't support "get
  18853. >version", etc.
  18854. >
  18855. >With the release of 2.1v3, I haven't been able to find anything at the
  18856. >application level that will cause a failure in 2.1v2 and not in 2.1v3.
  18857. >Unfortunately, there's no real guarantee that I have a database open, so I
  18858. >can't take advantage of the fact that numeric ID properties and things like
  18859. >will fail in 2.1v2 when databases are open.
  18860.  
  18861. If there is a condition (no databases open) in which you can't tell the
  18862. difference between 2.1v2 and 2.1v3, your don't care about the difference
  18863. <at that time>, do you?  If it does matter with a database open, do your
  18864. test at the first time you notice that the count of databases is not 0.
  18865.  
  18866. -------
  18867. However, you might try asking for the version as a string (and try some
  18868. other reasonable variations).  AppleScript installs a 'vers' to anything
  18869. coercion handler (presumably it doesn't actually coerce to anything, but
  18870. rather a subset of that.  But I see that FileMaker doesn't cooperate...it
  18871. returns a number anyhow, which gets enclosed in quotes.  [That's not how
  18872. the Registry suggests doing it...the Registry way does work:  I exercised
  18873. it in a toy app I wrote for a show-and-tell.  Floating point types work,
  18874. too, in the coercion handler, BTW.]
  18875.  
  18876. -------------
  18877. However (2), I note that my 2.1v2=80 returns a version of 131089 (00020011).
  18878. Mine was the result of passing 2.1v1 through the updater Claris uploaded.
  18879. My guess would be that the updaters neglect to update the number returned
  18880. as the version property.
  18881.  
  18882.     --John
  18883.  
  18884. --
  18885. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  18886. When was the last time you checked out the ceiling tiles in a building you
  18887. were in?
  18888. =========================================================================
  18889. Date:         Sat, 27 Aug 1994 02:21:56 -0700
  18890. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18891. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18892. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  18893. Subject:      Re: FileMaker versions
  18894.  
  18895. >Somewhat off the topic, was there ever a consensus on how we're all going
  18896. >to deal with naming conflicts between 'aete's, osaxen, etc?  Since
  18897. >apparently you can do "tell document ..." to point to a specific osax, is
  18898. >it really really even a problem?  I just got done playing with an app that
  18899. >used the word "file" as its "table" term. It caused problems when
  18900. >attempting to use file specifications inside a "tell application..." block.
  18901.  
  18902. I'm dealing with the conflicts by installing only Scripting Additions I'm
  18903. actively using (and being selective about that).  AppleScript just sort of
  18904. uses one big namespace...redefining things like "file" is downright
  18905. unfriendly.
  18906.  
  18907.    --John [sorry about the double reply]
  18908.  
  18909. --
  18910. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  18911. When was the last time you checked out the ceiling tiles in a building you
  18912. were in?
  18913. =========================================================================
  18914. Date:         Sat, 27 Aug 1994 02:32:42 -0700
  18915. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18916. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18917. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  18918. Subject:      Re: Cooperating with apps
  18919.  
  18920. >Greetings,
  18921. >
  18922. >Pity the script writer!  The task of cooperating with applications becomes such
  18923. >a tiresome detail.  Does anyone know if Adobe plans on recognizing OSA?
  18924. >
  18925. >I would have thought that activate was not dependent on an application's good
  18926. >behaviour.  Not apparently so:
  18927. >
  18928. >activate application "Premiere @ 18Mb"
  18929. >
  18930. >times out.
  18931. >
  18932. >Is there a more robust way of accomplishing a context switch?
  18933.  
  18934. Given the Scriptable Finder, yes.  This should do the trick:
  18935.  
  18936. tell application "Finder"
  18937.     set frontmost of process "Premiere @ 18Mb" to true
  18938. end tell
  18939.  
  18940. Without the Scriptable Finder, there may well be an osax (or 10)...I
  18941. haven't looked.  [It's trivial to write the osax code, unless there's a
  18942. "hidden" problem.]
  18943.  
  18944.   --John
  18945.  
  18946. --
  18947. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  18948. When was the last time you checked out the ceiling tiles in a building you
  18949. were in?
  18950. =========================================================================
  18951. Date:         Sat, 27 Aug 1994 09:31:28 -0400
  18952. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18953. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18954. From:         Jeff Boulter <boulter@BUCKNELL.EDU>
  18955. Subject:      Scripting PageMaker
  18956. In-Reply-To:  <9408270934.AA25818@coral.bucknell.edu>
  18957.  
  18958. I'm doing some scripting that involves PageMaker 5.0. I just found my
  18959. little coupon do order the Script Guide, but it won't be here for 6-8 weeks.
  18960.  
  18961. Could some kind soul with the Script Guide look up how do do the following:
  18962.  
  18963. Select All of the text in the story selected with the arrow tool
  18964. copy the text the clipboard
  18965.  
  18966. get the name of the frontmost document
  18967.  
  18968. Many thanks!
  18969.  
  18970. Jeff Boulter
  18971. Managing Editor
  18972. The Bucknellian
  18973.  
  18974. --
  18975. Jeff Boulter    boulter@bucknell.edu   http://www.bucknell.edu/bucknellian/jeff
  18976. =========================================================================
  18977. Date:         Sat, 27 Aug 1994 12:30:23 EDT
  18978. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18979. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18980. From:         Shaddar@AOL.COM
  18981. Subject:      Re: creation of a MacScripti...
  18982.  
  18983. Sorry if this is late and the thread already died, but I was away for two
  18984. weeks as I moved to school and would like to put in my two cents...
  18985.  
  18986. Basically, I've found that I appreciate the functions found on a news reader
  18987. much more than those of a mail reader.  I think it is much more convenient to
  18988. use a newsgroup than a mailing list.  With the ability to make both
  18989. simultaneously, I don't see the big problem everyone has.  It seems to me
  18990. that with both linked together, everyone is happy.
  18991.  
  18992. ~Shaddar
  18993. =========================================================================
  18994. Date:         Sat, 27 Aug 1994 10:14:17 -0800
  18995. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18996. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  18997. From:         Mike Cohen <isis@NETCOM.COM>
  18998. Subject:      Re: Receiving raw Apple Events in scripts
  18999.  
  19000. At 12:36 AM 8/27/94 -0700, Jon Pugh wrote:
  19001.  
  19002. >First off, you don't send some custom event like CSOmeNot.  You send an
  19003. >event that AppleScript knows, the Subroutine event.  It is listed in the
  19004. >AppleScript suite document which is in the Registry folder of the
  19005. >AppleScript 1.0 and 1.1 CDs.
  19006.  
  19007. Tell that to Steve Dorner. Unfortunately, that's how Eudora works currently.
  19008.  
  19009. Another offender is GeoQuery. You'd expect to be able to send a GetData
  19010. event, but instead you send it a custom event and instead of getting the
  19011. result in the reply, it sends you a separate event with the results.
  19012.  
  19013. _______________________________________________________________
  19014. Mike Cohen           | ISIS International
  19015. (818) 788-4747 Voice | isis@netcom.com           | ALink: D6734
  19016. (818) 501-0653 Fax   | NewtonMail, eWorld: MikeC | AOL: MikeC20
  19017. Home Page: file://ftp.netcom.com/pub/isis/home.html
  19018. =========================================================================
  19019. Date:         Sat, 27 Aug 1994 16:56:18 -0800
  19020. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  19021. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  19022. From:         Brian Hall <mspace@NETCOM.COM>
  19023. Subject:      Re: MACSCRPT Digest - 25 Aug 1994 to 26 Aug 1994
  19024.  
  19025. Given that a few people suggested writing a OSAX to handle the Eudora "on
  19026. notify" problem, could someone try it out and post the result? This sounds
  19027. like the best interim solution.
  19028.  
  19029. Brian Hall, Mark/Space Softworks, 408-293-7299, mspace@netcom.com
  19030. =========================================================================
  19031. Date:         Sun, 28 Aug 1994 06:11:54 -0500
  19032. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  19033. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  19034. From:         system@MAIL1.WYETH.COM
  19035. Subject:      Service Message
  19036.  
  19037. --Boundary (ID bWuMKCP0nUniZj69FWTKOQ)
  19038. Content-type: TEXT/REPORT
  19039.  
  19040. Report on your message to: /U=Unknown/@mr.wyeth.com
  19041. Reason: Unable to transfer; message formatting problem (1)
  19042. Diagnostic: Maximum time expired (5)
  19043. Supplementary information: Message was undeliverable to Microsoft mail.  Error c
  19044. onfirming server address %ATK-E-NBP_NAMNOTFOU, Name was not found
  19045. Arrival-date: Sat, 27 Aug 1994 23:03:58 EST
  19046.  
  19047. --Boundary (ID bWuMKCP0nUniZj69FWTKOQ)
  19048. Content-type: TEXT/PLAIN; CHARSET=US-ASCII
  19049.  
  19050. From: Systems, Macintosh S
  19051. Date: Sat, Aug 27, 1994 11:03 PM
  19052. Subject: MACSCRPT Digest - 26 Aug 1994 to 27 Aug 1994
  19053. To: Mobilio, Dominick; Sabatucci, Joe
  19054. File(s): Attach.Txt1
  19055.  
  19056. Regarding Message ID : 85210082804991/446285@MAIL1
  19057.  
  19058. From: NAME: Macintosh Scripting Systems
  19059. <MAIL1::PMDF::uga.cc.uga.edu::MACSCRPT%DARTCMS1.BITNET>
  19060.  
  19061. Author: NAME: Automatic digest processor
  19062. <MAIL1::PMDF::DARTCMS1.DARTMOUTH.EDU::LISTSERV>
  19063.  
  19064. To: NAME: Recipients of MACSCRPT digests
  19065. <MAIL1::PMDF::DARTCMS1.DARTMOUTH.EDU::MACSCRPT>
  19066.  
  19067. Date      : 27-AUG-1994 23:03:58.00
  19068. There are 12 messages totalling 495 lines in this issue.
  19069.  
  19070. Topics of the day:
  19071.  
  19072.   1. Receiving raw Apple Events in scripts (2)
  19073.   2. Quit from applets (2)
  19074.   3. Getting custom icons in AppleScript
  19075.   4. Walk folders
  19076.   5. FileMaker versions (2)
  19077.   6. Cooperating with apps
  19078.   7. Scripting PageMaker
  19079.   8. creation of a MacScripti...
  19080.   9. MACSCRPT Digest - 25 Aug 1994 to 26 Aug 1994
  19081.  
  19082. ----------------------------------------------------------------------
  19083.  
  19084. Date:    Sat, 27 Aug 1994 00:36:54 -0700
  19085. From:    Jon Pugh <jonpugh@NETCOM.COM>
  19086. Subject: Re: Receiving raw Apple Events in scripts
  19087.  
  19088. Kiran Wagle <groo@NETCOM.COM> wrote:
  19089. >
  19090. >If anyone has an example of an event handler for an event other than the
  19091. >four required ones, I haven't seen it.
  19092. >
  19093. >But you CAN write a handler if you use those pesky angle brackets.
  19094. >
  19095. >on <<event CSOmeNot>>
  19096. >do stuff
  19097. >end
  19098. >
  19099. >--the angle brackets are special characters.
  19100. >
  19101. >It's ugly and I don't like it, but nobody's been able to tell me (or Steve)
  19102. >how to tell Applescript that notice is NOT a variable but the name of an
  19103. >event.
  19104.  
  19105. Well, I know how, but it's not quite the answer you were expecting.  In
  19106. fact, you are correct in that AppleScript can't handle general AppleEvents
  19107. worth a damn.  Mind you, I haven't actually done this, but I do know what
  19108. is involved.
  19109.  
  19110. First off, you don't send some custom event like CSOmeNot.  You send an
  19111. event that AppleScript knows, the Subroutine event.  It is listed in the
  19112. AppleScript suite document which is in the Registry folder of the
  19113. AppleScript 1.0 and 1.1 CDs.
  19114.  
  19115. Essentially, the subroutine event includes a lowercase string for the
  19116. procedure name and a record of parameters.  You send "notify" and the
  19117. parameters.  Now you write "on notify" in your script and everything works.
  19118.  
  19119.                                 -=-=-=-=-=-=-=-
  19120.  
  19121. Mark Aiken <inra@musicb.mcgill.ca> wrote:
  19122. >    I understand, although I have never written an app to test this
  19123. >myself, that apps that allow you to write scripts from within them,
  19124. >such as a hypothetical attachable and tinkerable app, don't have this
  19125. >problem because the Component Manager consults the app's 'aete'
  19126. >resource when compiling, even in the case of event handlers. I think
  19127. >Apple only considered the case of attachable/tinkerable apps when
  19128. >setting things up their current way, and didn't realize that the cur-
  19129. >rent situation creates a problems for applications such as Eudora and
  19130. >my own File Tracker, that rely on AS applets containing handlers for
  19131. >special events.
  19132. >
  19133. >    Another solution to this problem would be to ship a custom Script
  19134. >Editor with apps such as FT and Eudora, that contain the necessary
  19135. >terminology and can therefore serve as tools for writing scripts with
  19136. >the necessary event handlers. ;-)
  19137.  
  19138. The component manager doesn't do squat except route OSA calls to the
  19139. AppleScript component.  The AppleScript component is the one who sends an
  19140. event to grab an aete and use it while compiling.  Just nitpicking.  ;)
  19141.  
  19142. As for the "hypothetical" Hypercard, it uses these subroutine events for
  19143. all of its internal messages.  I recommend that you use them too.  That way
  19144. you could even write your notification in HyperTalk, and you won't have to
  19145. invent or register your own 4 character codes either.
  19146.  
  19147.                                 -=-=-=-=-=-=-=-
  19148.  
  19149. Here's the relevant passage from the AppleScript Suite document from the
  19150. 1.0 CD (my 1.1 CD is at the cleaners ;).  All of the constants are defined
  19151. in AppleScript.h.
  19152.  
  19153. Jon
  19154.  
  19155.                                 -=-=-=-=-=-=-=-
  19156.  
  19157. Subroutine Call - Call a user-defined subroutine
  19158.  
  19159. The subroutine event is sent for calls to user-defined subroutines.  They
  19160. contain the name of the event as a text string, and any parameters for the
  19161. event.  A standard set of prepositional parameters are available.
  19162.  
  19163. Event Class     kASAppleScriptSuite     'ascr'
  19164. Event ID        kASSubroutineEvent      'psbr'
  19165.  
  19166. Parameters
  19167.  
  19168. keyDirectObject
  19169.         Description:            The target, or list of arguments
  19170.         Descriptor Type:        typeObjectSpecifier or typeAEList
  19171.         Required or Optional?   Optional
  19172. keyASSubroutineName
  19173.         Description:            The subroutine name
  19174.         Descriptor Type:        typeChar
  19175.         Required or Optional?   Required
  19176. keyASPrepositionAt
  19177. keyASPrepositionAt
  19178. keyASPrepositionIn
  19179. keyASPrepositionFrom
  19180. keyASPrepositionFor
  19181. keyASPrepositionTo
  19182. keyASPrepositionThru
  19183. keyASPrepositionThrough
  19184. keyASPrepositionBy
  19185. keyASPrepositionOn
  19186. keyASPrepositionInto
  19187. keyASPrepositionOnto
  19188. keyASPrepositionBetween
  19189. keyASPrepositionAgainst
  19190. keyASPrepositionOutOf
  19191. keyASPrepositionInsteadOf
  19192. keyASPrepositionAsideFrom
  19193. keyASPrepositionAround
  19194. keyASPrepositionBeside
  19195. keyASPrepositionBeneath
  19196. keyASPrepositionUnder
  19197. keyASPrepositionOver
  19198. keyASPrepositionAbove
  19199. keyASPrepositionBelow
  19200. keyASPrepositionApartFrom
  19201. keyASPrepositionAbout
  19202. keyASPrepositionSince
  19203. keyASPrepositionUntil
  19204.         Description:            Named prepositional parameters
  19205.         Descriptor Type:        typeWildCard
  19206.         Required or Optional?   Optional
  19207. keyASUserRecordFields
  19208.         Description:            Parameters with user-defined names
  19209.         Descriptor Type:        typeUserRecordFields
  19210.         Required or Optional?   Optional
  19211.  
  19212. Reply Parameters
  19213.  
  19214. keyAEResult
  19215.         Description:            The result of the subroutine call
  19216.         Descriptor Type:        typeWildCard
  19217.         Required or Optional?   Optional
  19218. (see Replies section for additional error reply parameters)
  19219.  
  19220.  
  19221. typeUserRecordFields - List of user-defined record fields
  19222.  
  19223. A typeUserRecordFields descriptor record specifies a list of user-defined
  19224. record fields - their names and values.  The list contains alternating name
  19225. value pairs, where each name is typeIntlText and each value is of any type.
  19226.  
  19227.  
  19228. Data Size       Variable
  19229.  
  19230. ------------------------------
  19231.  
  19232. Date:    Sat, 27 Aug 1994 00:37:03 -0700
  19233. From:    Jon Pugh <jonpugh@NETCOM.COM>
  19234. Subject: Re: Quit from applets
  19235.  
  19236. Mike Shaff <shaff@QUILTY.STANFORD.EDU> wrote:
  19237. >
  19238. >on quit {}
  19239. >        if gProjectDatabase = false then
  19240. >                StopRegistration
  19241. >        end if
  19242. >
  19243. >        -- pass quit
  19244. >end quit
  19245. >
  19246. >How do I refer to 'super' quit?
  19247.  
  19248. continue quit
  19249.  
  19250.  
  19251. Remember, if you have a script that you can't quit because you forgot this,
  19252. simply hold down the SHIFT key and your quit handler will not be called.
  19253.  
  19254. Who's got the FAQ?  Is this tip in it?
  19255.  
  19256. Jon
  19257.  
  19258. ------------------------------
  19259.  
  19260. Date:    Sat, 27 Aug 1994 00:37:10 -0700
  19261. From:    Jon Pugh <jonpugh@NETCOM.COM>
  19262. Subject: Re: Getting custom icons in AppleScript
  19263.  
  19264. Bill Hutten <bhutten@FOX.NSTN.NS.CA> wrote:
  19265. >
  19266. >I'm writing a script that has to get the "preview" icons from files saved
  19267. >in PhotoShop. A little ResEdit work reveals that these custom icons are
  19268. >stored in icl8 resource -16455 in each PhotoShop file.
  19269. >
  19270. >How do I retrieve this resource? Do I need an osax? Ideally, I'd like to be
  19271. >able to convert the icl8 to a PICT.....
  19272.  
  19273. Scriptable Finder!
  19274.  
  19275. tell application "Finder"
  19276.     set theIcon to icon of file "foo"
  19277. end tell
  19278.  
  19279. Now what are you going to do with it?  This is an "icon family" data
  19280. record.  It has properties corresponding to the various icon resources.
  19281. You can seperate them with "<<class icl8>> of theIcon" but I don't think
  19282. this really helps.  I don't see any way to make this into a picture, and a
  19283. resource osax wouldn't help since it couldn't make it into a picture
  19284. either.
  19285.  
  19286. I see this as a limitation of the scriptable Finder.  If you do a copy from
  19287. the Get Info dialog, you get a picture too.  Ah well, nothing's perfect.
  19288.  
  19289. Jon
  19290.  
  19291. ------------------------------
  19292.  
  19293. Date:    Sat, 27 Aug 1994 00:37:13 -0700
  19294. From:    Jon Pugh <jonpugh@NETCOM.COM>
  19295. Subject: Re: Walk folders
  19296.  
  19297. Mike Shaff <shaff@QUILTY.STANFORD.EDU> wrote:
  19298. >
  19299. >I am not certain how to phrase my question.  With that caveat:
  19300. >
  19301. >What are the performance characteristics of the Walk Folder command from Jo=
  19302. n's
  19303. >Commands (found on gaea)?
  19304. >
  19305. >I am more interested in its 'feel' than its theoretical nature.
  19306.  
  19307. Well, I was more interested in code simplicity than performance, but I'm
  19308. certain that it out-performs a comparable script.  Nevertheless, I did some
  19309. timing tests. Here's the script:
  19310.  
  19311.  
  19312. script foo
  19313.         property c : 0
  19314.         on open (theFile)
  19315.                 set c to c + 1
  19316.                 return c
  19317.         end open
  19318. end script
  19319.  
  19320. set startTime to current date
  19321. set c to walk folders alias "AppleScript=81:" with script foo
  19322. set endTime to current date
  19323. set secs to endTime - startTime
  19324. {c, secs, c / secs}
  19325.  
  19326.  
  19327. Here are the results:
  19328.  
  19329. files          seconds       files/sec
  19330.   213 (8M)        20            10.7      My Info-Mac junk folder (disk 1)
  19331.   461 (9M)        40            11.5      My AppleScript collectables (disk =
  19332. 1)
  19333.   882 (29M)       53            16.6      My PhotoFlash sources (disk 2)
  19334.   652 (70M)       22            29.6      The AppleScript 1.0 CD
  19335. 15577 (473M)    1301            12.0      All of Disk 1
  19336.  
  19337. Wow!  It's 3 times faster off CD than off my HD?  I don't know why that is.
  19338. I'll investigate, but if anyone wants to email me their results (don't
  19339. reply to the list!), I'll see if they help explain things.  ;)
  19340.  
  19341. Jon
  19342.  
  19343. ------------------------------
  19344.  
  19345. Date:    Sat, 27 Aug 1994 02:00:36 -0700
  19346. From:    "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  19347. Subject: Re: Quit from applets
  19348.  
  19349. >Greetings,
  19350. >
  19351. >AppleScript with its varried syntax and extensions is a blast, in all senses of
  19352. >the word.  I have an applet which remains open for the vast duration of its
  19353. >life.  It is basically a network interface for a small database.  When it comes
  19354. >time for it to quit, I want to have a piece of conditional code:
  19355. >
  19356. >on quit {}
  19357. >        if gProjectDatabase = false then
  19358. >                StopRegistration
  19359. >        end if
  19360. >
  19361. >        -- pass quit
  19362. >end quit
  19363.  
  19364. continue quit
  19365.  
  19366. is the way to say the "pass quit" above.
  19367.    --John
  19368.  
  19369. --
  19370. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  19371. When was the last time you checked out the ceiling tiles in a building you
  19372. were in?
  19373.  
  19374. ------------------------------
  19375.  
  19376. Date:    Sat, 27 Aug 1994 02:17:52 -0700
  19377. From:    "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  19378. Subject: Re: FileMaker versions
  19379.  
  19380. >Hi,
  19381. >
  19382. >I'll spare you all the heated diatribe on the topic of Claris' lame habit
  19383. >of changing the 'aete' every release and just ask questions.
  19384.  
  19385. As opposed to leaving the 'aete' (or the events described by same) broken?
  19386.  
  19387.  
  19388. >I'm in a position where I have to write scripts that will function
  19389. >regardless of the version of FileMaker Pro currently being executed.
  19390. >
  19391. >Asking for the application's version property returns the number 131092 in
  19392. >versions 2.1v2 and 2.1v3, so I haven't been able to rely upon that.
  19393.  
  19394. Looks like an oversight.  In hex, that's 00020014, which argueably makes
  19395. some sort of sense for one of those versions.
  19396.  
  19397. >What I've done in the past is to figure out what was broken in prior
  19398. >versions of FMP, and execute bits of code until it didn't fail.  For
  19399. >example 2.0 didn't support "Count windows", 2.1v1 doesn't support "get
  19400. >version", etc.
  19401. >
  19402. >With the release of 2.1v3, I haven't been able to find anything at the
  19403. >application level that will cause a failure in 2.1v2 and not in 2.1v3.
  19404. >Unfortunately, there's no real guarantee that I have a database open, so I
  19405. >can't take advantage of the fact that numeric ID properties and things like
  19406. >will fail in 2.1v2 when databases are open.
  19407.  
  19408. If there is a condition (no databases open) in which you can't tell the
  19409. difference between 2.1v2 and 2.1v3, your don't care about the difference
  19410. <at that time>, do you?  If it does matter with a database open, do your
  19411. test at the first time you notice that the count of databases is not 0.
  19412.  
  19413. -------
  19414. However, you might try asking for the version as a string (and try some
  19415. other reasonable variations).  AppleScript installs a 'vers' to anything
  19416. coercion handler (presumably it doesn't actually coerce to anything, but
  19417. rather a subset of that.  But I see that FileMaker doesn't cooperate...it
  19418. returns a number anyhow, which gets enclosed in quotes.  [That's not how
  19419. the Registry suggests doing it...the Registry way does work:  I exercised
  19420. it in a toy app I wrote for a show-and-tell.  Floating point types work,
  19421. too, in the coercion handler, BTW.]
  19422.  
  19423. -------------
  19424. However (2), I note that my 2.1v2=80 returns a version of 131089 (00020011).
  19425. Mine was the result of passing 2.1v1 through the updater Claris uploaded.
  19426. My guess would be that the updaters neglect to update the number returned
  19427. as the version property.
  19428.  
  19429.     --John
  19430.  
  19431. --
  19432. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  19433. When was the last time you checked out the ceiling tiles in a building you
  19434. were in?
  19435.  
  19436. ------------------------------
  19437.  
  19438. Date:    Sat, 27 Aug 1994 02:21:56 -0700
  19439. From:    "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  19440. Subject: Re: FileMaker versions
  19441.  
  19442. >Somewhat off the topic, was there ever a consensus on how we're all going
  19443. >to deal with naming conflicts between 'aete's, osaxen, etc?  Since
  19444. >apparently you can do "tell document ..." to point to a specific osax, is
  19445. >it really really even a problem?  I just got done playing with an app that
  19446. >used the word "file" as its "table" term. It caused problems when
  19447. >attempting to use file specifications inside a "tell application..." block.
  19448.  
  19449. I'm dealing with the conflicts by installing only Scripting Additions I'm
  19450. actively using (and being selective about that).  AppleScript just sort of
  19451. uses one big namespace...redefining things like "file" is downright
  19452. unfriendly.
  19453.  
  19454.    --John [sorry about the double reply]
  19455.  
  19456. --
  19457. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  19458. When was the last time you checked out the ceiling tiles in a building you
  19459. were in?
  19460.  
  19461. ------------------------------
  19462.  
  19463. Date:    Sat, 27 Aug 1994 02:32:42 -0700
  19464. From:    "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  19465. Subject: Re: Cooperating with apps
  19466.  
  19467. >Greetings,
  19468. >
  19469. >Pity the script writer!  The task of cooperating with applications becomes such
  19470. >a tiresome detail.  Does anyone know if Adobe plans on recognizing OSA?
  19471. >
  19472. >I would have thought that activate was not dependent on an application's good
  19473. >behaviour.  Not apparently so:
  19474. >
  19475. >activate application "Premiere @ 18Mb"
  19476. >
  19477. >times out.
  19478. >
  19479. >Is there a more robust way of accomplishing a context switch?
  19480.  
  19481. Given the Scriptable Finder, yes.  This should do the trick:
  19482.  
  19483. tell application "Finder"
  19484.     set frontmost of process "Premiere @ 18Mb" to true
  19485. end tell
  19486.  
  19487. Without the Scriptable Finder, there may well be an osax (or 10)...I
  19488. haven't looked.  [It's trivial to write the osax code, unless there's a
  19489. "hidden" problem.]
  19490.  
  19491.   --John
  19492.  
  19493. --
  19494. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  19495. When was the last time you checked out the ceiling tiles in a building you
  19496. were in?
  19497.  
  19498. ------------------------------
  19499.  
  19500. Date:    Sat, 27 Aug 1994 09:31:28 -0400
  19501. From:    Jeff Boulter <boulter@BUCKNELL.EDU>
  19502. Subject: Scripting PageMaker
  19503.  
  19504. I'm doing some scripting that involves PageMaker 5.0. I just found my
  19505. little coupon do order the Script Guide, but it won't be here for 6-8 weeks.
  19506.  
  19507. Could some kind soul with the Script Guide look up how do do the following:
  19508.  
  19509. Select All of the text in the story selected with the arrow tool
  19510. copy the text the clipboard
  19511.  
  19512. get the name of the frontmost document
  19513.  
  19514. Many thanks!
  19515.  
  19516. Jeff Boulter
  19517. Managing Editor
  19518. The Bucknellian
  19519.  
  19520. --
  19521. Jeff Boulter    boulter@bucknell.edu   http://www.bucknell.edu/bucknellian/jeff
  19522.  
  19523. ------------------------------
  19524.  
  19525. Date:    Sat, 27 Aug 1994 12:30:23 EDT
  19526. From:    Shaddar@AOL.COM
  19527. Subject: Re: creation of a MacScripti...
  19528.  
  19529. Sorry if this is late and the thread already died, but I was away for two
  19530. weeks as I moved to school and would like to put in my two cents...
  19531.  
  19532. Basically, I've found that I appreciate the functions found on a news reader
  19533. much more than those of a mail reader.  I think it is much more convenient to
  19534. use a newsgroup than a mailing list.  With the ability to make both
  19535. simultaneously, I don't see the big problem everyone has.  It seems to me
  19536. that with both linked together, everyone is happy.
  19537.  
  19538. ~Shaddar
  19539.  
  19540. ------------------------------
  19541.  
  19542. Date:    Sat, 27 Aug 1994 10:14:17 -0800
  19543. From:    Mike Cohen <isis@NETCOM.COM>
  19544. Subject: Re: Receiving raw Apple Events in scripts
  19545.  
  19546. At 12:36 AM 8/27/94 -0700, Jon Pugh wrote:
  19547.  
  19548. >First off, you don't send some custom event like CSOmeNot.  You send an
  19549. >event that AppleScript knows, the Subroutine event.  It is listed in the
  19550. >AppleScript suite document which is in the Registry folder of the
  19551. >AppleScript 1.0 and 1.1 CDs.
  19552.  
  19553. Tell that to Steve Dorner. Unfortunately, that's how Eudora works currently.
  19554.  
  19555. Another offender is GeoQuery. You'd expect to be able to send a GetData
  19556. event, but instead you send it a custom event and instead of getting the
  19557. result in the reply, it sends you a separate event with the results.
  19558.  
  19559. _______________________________________________________________
  19560. Mike Cohen           | ISIS International
  19561. (818) 788-4747 Voice | isis@netcom.com           | ALink: D6734
  19562. (818) 501-0653 Fax   | NewtonMail, eWorld: MikeC | AOL: MikeC20
  19563. Home Page: file://ftp.netcom.com/pub/isis/home.html
  19564.  
  19565. ------------------------------
  19566.  
  19567. Date:    Sat, 27 Aug 1994 16:56:18 -0800
  19568. From:    Brian Hall <mspace@NETCOM.COM>
  19569. Subject: Re: MACSCRPT Digest - 25 Aug 1994 to 26 Aug 1994
  19570.  
  19571. Given that a few people suggested writing a OSAX to handle the Eudora "on
  19572. notify" problem, could someone try it out and post the result? This sounds
  19573. like the best interim solution.
  19574.  
  19575. Brian Hall, Mark/Space Softworks, 408-293-7299, mspace@netcom.com
  19576.  
  19577. ------------------------------
  19578.  
  19579. End of MACSCRPT Digest - 26 Aug 1994 to 27 Aug 1994
  19580. ***************************************************
  19581.  
  19582.  
  19583.            ************************************************
  19584.              Text attachment found and added as enclosure
  19585.            ************************************************
  19586.  
  19587.  
  19588. --Boundary (ID bWuMKCP0nUniZj69FWTKOQ)--
  19589. =========================================================================
  19590. Date:         Sun, 28 Aug 1994 09:46:23 -0800
  19591. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  19592. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  19593. From:         Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
  19594. Subject:      Scriptable Fax Modem?
  19595.  
  19596. I'd like a fax modem that can receive faxes and automatically run them
  19597. through an OCR and save them as a text file. Any ideas?
  19598.  
  19599. Maybe there is fax software out there that will do all of this without
  19600. AppleScript?
  19601.  
  19602. Maybe there is fax software that will save incoming faxes as individual
  19603. graphics file and then there is a scriptable OCR package that can be told
  19604. to read individual graphic files?
  19605.  
  19606. Maybe for now all I can get is a fax modem that saves the files
  19607. individually into a format that I could manually OCR with any OCR package?
  19608.  
  19609. Any ideas?
  19610.  
  19611. Kee Nethery
  19612. =========================================================================
  19613. Date:         Sun, 28 Aug 1994 09:44:53 -1000
  19614. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  19615. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  19616. From:         Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
  19617. Subject:      Re: Walk folders
  19618. In-Reply-To:  <9408270739.AA19272@uhunix.uhcc.Hawaii.Edu>
  19619.  
  19620. I did a speed comparison of my folder and file processor to Jon's Commands
  19621. "walk folder" command.
  19622.  
  19623. RESULT:  Jon's Commands came out the clear winner.  It was about 6 times
  19624. faster.
  19625.  
  19626. Here are the applets I made for the test:
  19627.  
  19628. --------------------------------------------------------------------------------
  19629. property c : 0
  19630.  
  19631. on open (theFilesAndFolders)
  19632.         set c to 0
  19633.         set startTime to current date
  19634.         RecursionNavigate(theFilesAndFolders)
  19635.         set endTime to current date
  19636.         set secs to endTime - startTime
  19637.         display dialog (c as string) & " files in " & secs & " seconds ("
  19638. & c / secs & " files/second)"
  19639. end open
  19640.  
  19641. on RecursionNavigate(theFilesAndFolders)
  19642.         repeat with currentItem in theFilesAndFolders
  19643.                 if (info for currentItem) is folder then
  19644.                         set folderContents to (list folder (currentItem))
  19645.                         set fullPathNameList to {}
  19646.                         repeat with i in folderContents
  19647.                                 set fullPathName to (currentItem as
  19648. string) & i
  19649.                                 if (info for fullPathName) is folder then
  19650.                                         set fullPathName to (fullPathName
  19651. as string) & ":"
  19652.                                 end if
  19653.                                 set end of fullPathNameList to fullPathName
  19654.                         end repeat
  19655.                         RecursionNavigate(fullPathNameList)
  19656.                 else
  19657.                         set c to c + 1
  19658.                 end if
  19659.         end repeat
  19660. end RecursionNavigate
  19661. --------------------------------------------------------------------------------
  19662.  
  19663. on open (theFilesAndFolders)
  19664.         script foo
  19665.                 property c : 0
  19666.                 on open (theFile)
  19667.                         set c to c + 1
  19668.                         return c
  19669.                 end open
  19670.         end script
  19671.  
  19672.         set startTime to current date
  19673.         set c to walk folders theFilesAndFolders with script foo
  19674.         set endTime to current date
  19675.         set secs to endTime - startTime
  19676.         display dialog (c as string) & " files in " & secs & " seconds ("
  19677. & c / secs & " files/second)"
  19678. end open
  19679.  
  19680.  
  19681. --peter
  19682. =========================================================================
  19683. Date:         Sun, 28 Aug 1994 15:20:42 -0500
  19684. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  19685. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  19686. From:         Fred Terry <pfterry@LKS.CSI.COM>
  19687. Subject:      Re: Quit from applets
  19688. In-Reply-To:  Your message of "Sat, 27 Aug 94 00:37:03 PDT"
  19689.  
  19690. Jon said....
  19691.  
  19692. >If you have a script that you can't quit because you forgot this,
  19693. >simply hold down the SHIFT key and your quit handler will not be called.
  19694. >
  19695. >Who's got the FAQ?  Is this tip in it?
  19696.  
  19697. Yes, it is.
  19698.  
  19699. pf
  19700. =========================================================================
  19701. Date:         Sun, 28 Aug 1994 16:22:21 -0500
  19702. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  19703. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  19704. From:         Charles Wiltgen <cwiltgen@MCS.COM>
  19705. Subject:      Re: MACSCRPT Digest - 25 Aug 1994 to 26 Aug 1994
  19706.  
  19707. >Given that a few people suggested writing a OSAX to handle the Eudora "on
  19708. >notify" problem, could someone try it out and post the result? This sounds
  19709. >like the best interim solution.
  19710.  
  19711. BTW, has anyone been experimenting with 1.5, which is supposed to have
  19712. improved AppleScript support?
  19713.  
  19714.  
  19715. --
  19716. Charles Wiltgen    "Love is a snowmobile racing across the tundra and
  19717. cwiltgen@mcs.com    then suddenly it flips over, pinning you underneath.
  19718. (INTP)              At night, the ice weasels come." - Nietzsche (Groening)
  19719. World Wide Web      http://venus.mcs.net/~cwiltgen/home.html
  19720. =========================================================================
  19721. Date:         Mon, 29 Aug 1994 09:52:00 +1200
  19722. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  19723. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  19724. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  19725.               NZ" <LDO@WAIKATO.AC.NZ>
  19726. Subject:      Re: Receiving raw Apple Events in scripts
  19727.  
  19728. Mike Cohen <isis@NETCOM.COM> writes:
  19729.  
  19730. >At 12:36 AM 8/27/94 -0700, Jon Pugh wrote:
  19731. >
  19732. >>First off, you don't send some custom event like CSOmeNot.  You send an
  19733. >>event that AppleScript knows, the Subroutine event.  It is listed in the
  19734. >>AppleScript suite document which is in the Registry folder of the
  19735. >>AppleScript 1.0 and 1.1 CDs.
  19736. >
  19737. >Tell that to Steve Dorner. Unfortunately, that's how Eudora works currently.
  19738.  
  19739. Here's a possible way around this. Write an osax which handles the CSOm/eNot
  19740. message. This gives you a system-wide handler for this event. There's no need
  19741. to give it an aete, since you're never going to to call it from AppleScript--
  19742. only Eudora is going to send this event. What the osax does is send an
  19743. ascr/psbr event to the current process, using a subroutine name of your
  19744. choice, and passing on the arguments from the CSOm/eNot event.
  19745.  
  19746. Basically, it's an "event redirector" osax.
  19747.  
  19748. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  19749. Info & Tech Services Division              fax: +64-7-838-4066
  19750. University of Waikato            electric mail: ldo@waikato.ac.nz
  19751. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  19752. =========================================================================
  19753. Date:         Sun, 28 Aug 1994 19:39:43 -0400
  19754. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  19755. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  19756. From:         Chris LeCroy <lecroy@IDS.NET>
  19757. Subject:      Re: FileMaker versions
  19758.  
  19759. >>I'll spare you all the heated diatribe on the topic of Claris' lame habit
  19760. >>of changing the 'aete' every release and just ask questions.
  19761. >
  19762. >As opposed to leaving the 'aete' (or the events described by same) broken?
  19763.  
  19764. Well, no. As opposed to doing it correctly once and for all. They've had
  19765. almost two years, now...
  19766.  
  19767. >>What I've done in the past is to figure out what was broken in prior
  19768. >>versions of FMP, and execute bits of code until it didn't fail.  For
  19769. >>example 2.0 didn't support "Count windows", 2.1v1 doesn't support "get
  19770. >>version", etc.
  19771. >>With the release of 2.1v3, I haven't been able to find anything at the
  19772. >>application level that will cause a failure in 2.1v2 and not in 2.1v3.
  19773. >>Unfortunately, there's no real guarantee that I have a database open, so I
  19774. >>can't take advantage of the fact that numeric ID properties and things like
  19775. >>will fail in 2.1v2 when databases are open.
  19776. >
  19777. >If there is a condition (no databases open) in which you can't tell the
  19778. >difference between 2.1v2 and 2.1v3, your don't care about the difference
  19779. ><at that time>, do you?  If it does matter with a database open, do your
  19780. >test at the first time you notice that the count of databases is not 0.
  19781.  
  19782. [Whoops, sorry... I wasn't very clear in my earlier comments.]
  19783.  
  19784. Actually, I do care. I have an application that generates scripts that need
  19785. to be syntactically correct based upon the version of FileMaker they're
  19786. being generated for. Of course, I could start making trial and error
  19787. OSACompile() calls on top of my trial and error AppleScript calls, but I'm
  19788. afraid people might start calling me silly to my face, then.
  19789.  
  19790. I've since slapped together a 'vers' and will rely upon that, as opposed to
  19791. the kludgy way I've been doing it in the past.
  19792.  
  19793.  
  19794.  
  19795. ---
  19796. Chris LeCroy - lecroy@ids.net
  19797. SouthBeach Software Corp.
  19798. =========================================================================
  19799. Date:         Sun, 28 Aug 1994 19:39:55 -0400
  19800. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  19801. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  19802. From:         Chris LeCroy <lecroy@IDS.NET>
  19803. Subject:      Naming conflicts (was FileMaker versions)
  19804.  
  19805. >>Somewhat off the topic, was there ever a consensus on how we're all going
  19806. >>to deal with naming conflicts between 'aete's, osaxen, etc?  Since
  19807. >>apparently you can do "tell document ..." to point to a specific osax, is
  19808. >>it really really even a problem?  I just got done playing with an app that
  19809. >>used the word "file" as its "table" term. It caused problems when
  19810. >>attempting to use file specifications inside a "tell application..." block.
  19811. >
  19812. >I'm dealing with the conflicts by installing only Scripting Additions I'm
  19813. >actively using (and being selective about that).  AppleScript just sort of
  19814. >uses one big namespace...redefining things like "file" is downright
  19815. >unfriendly.
  19816.  
  19817. They've since fixed the poor naming decision.
  19818.  
  19819. BTW, "file" shows as an application keyword in Script Editor.  Are there
  19820. certain *application* keywords owned by AppleScript or are developers in a
  19821. position of having to make educated guesses when designing AppleScript
  19822. terminologies? (I don't have Apple's AppleScript docs, yet, so be easy on
  19823. me if the answers are there...)
  19824.  
  19825. Sorry, I was a little vague in my comments regarding name pollution.  I'm
  19826. not really too worried about *my* ability to muddle through name conflicts.
  19827. I'm worried about the average user.  As it stands there are probably 50-100
  19828. (wild ass guess) osaxen generally available.  What happens when there are
  19829. 500?  What happens when (for whatever reason) osaxen begin to appear as
  19830. installer pieces to commercial applications and there are terminology
  19831. conflicts between them?  Does anyone else see this as a potential
  19832. nightmare?
  19833.  
  19834. >     --John [sorry about the double reply]
  19835. >jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  19836.  
  19837. Nope, my fault for throwing two unrelated topics into one posting.
  19838.  
  19839.  
  19840. ---
  19841. Chris LeCroy - lecroy@ids.net
  19842. SouthBeach Software Corp.
  19843. =========================================================================
  19844. Date:         Mon, 29 Aug 1994 13:41:48 +1200
  19845. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  19846. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  19847. From:         Owen Watson <owen@RSNZ.GOVT.NZ>
  19848. Subject:      Eudora 2.1, MailShare and Notify
  19849.  
  19850. So I don't reinvent the wheel, is there a script out there that will
  19851. receive and process the notifications posted by MailShare of new mail for
  19852. Eudora?
  19853.  
  19854. _________________________________________________________________________
  19855. Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
  19856. Internet watson.o@rsnz.govt.nz  Ph: +64 4 472 7421 Fax: +64 4 473 1841
  19857. The gateway to New Zealand science: http://www.rsnz.govt.nz/
  19858. =========================================================================
  19859. Date:         Sun, 28 Aug 1994 18:50:24 -0700
  19860. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  19861. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  19862. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  19863. Subject:      Eudora Notification vs Frontier
  19864.  
  19865.    I've been watching the discussions here about receiving the incoming
  19866. mail notification event from Eudora.
  19867.  
  19868.    It's time to mention that doing so is trivial in Frontier (or Frontier
  19869. Runtime).
  19870.  
  19871. Here's a simple handler (I think it came with some sample Eudora scripting
  19872. code from Leonard Rosenthol)
  19873.  
  19874. on eNot(msgList)
  19875.     speaker.beep()
  19876.     eudora.examples.eudoraHandler(msgList)
  19877.  
  19878. This script would be placed in a table named CSOm, which would be in
  19879. system.verbs.traps.  (That's how incoming events can be passed to
  19880. handlers...it's used with misc.dosc, in Frontier as shipped.)
  19881.  
  19882.    --John
  19883.  
  19884. --
  19885. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  19886. When was the last time you checked out the ceiling tiles in a building you
  19887. were in?
  19888. =========================================================================
  19889. Date:         Sun, 28 Aug 1994 17:59:06 -1000
  19890. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  19891. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  19892. From:         Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
  19893. Subject:      New version of Eudora (Better AppleScripting) (fwd)
  19894.  
  19895. Sorry if this has already been posted here.  I haven't seen it here yet
  19896. though.
  19897.  
  19898. ---------- Forwarded message ----------
  19899. Date: Sun, 28 Aug 1994 16:52:57 -1000
  19900. Subject: New version of Eudora (Better AppleScripting)
  19901.  
  19902. >
  19903. >Test versions of Eudora 1.5 (free) and 2.1 (commercial, updater from 2.0.3)
  19904. >are now available on our ftp site (ftp.qualcomm.com, quest/mac/eudora/beta
  19905. >subdirectory).
  19906. >
  19907. >These are TEST versions.  They may have bugs.  They do not have much
  19908. >documentation.  If you're not the adventurous sort, leave them alone.  If
  19909. >you do use them, be sure to report bugs to eudora-bugs@qualcomm.com.
  19910. >
  19911. >The test versions will expire on October 1, 1994; we'll have non-expiring
  19912. >ones out long before that.
  19913. >
  19914. >The changes in 1.5 are primarily performance improvements and a greatly
  19915. >improved AppleScript dictionary.  Besides including the same performance
  19916. >and AppleScript improvements as 1.5, 2.1 has some new features, including
  19917. >support for dragging messages between mailboxes, kerberos, improved server
  19918. >message management, and message color-coding.
  19919. >
  19920. >More information, including release notes, is available on the ftp site.
  19921. >
  19922. >--
  19923. >Steve Dorner, Qualcomm Incorporated
  19924. >  Whosoever has lived long enough to find out what life is, knows how deep a
  19925. >  debt of gratitude we owe to Adam.  He brought death into this world.
  19926. >                                                                Mark Twain
  19927. >
  19928.  
  19929.  
  19930.  
  19931. ----------------------------------------------------------------------
  19932. MCIP mailing list <mcip@netcom.com>. Subscriptions: qwerty@netcom.com.
  19933.     No crypto code. Archive: ftp.netcom.com in /pub/qwerty/MCIP.
  19934. =========================================================================
  19935. Date:         Sun, 28 Aug 1994 21:46:47 -0700
  19936. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  19937. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  19938. From:         Mike Shaff <shaff@QUILTY.STANFORD.EDU>
  19939. Subject:      Are "Mail Enclosures" disks?
  19940.  
  19941. Greetings,
  19942.  
  19943. My application is trying to make a reasonable first guess as to a back-up
  19944. volume.  There exists a set of known volumes and the inevitable rest.  A third
  19945. volume will most often be a volume to which the user will back-up their project
  19946. files.
  19947.  
  19948. I was surprised when I experimented with
  19949.  
  19950. set volumesOnline to list disks
  19951. item 2 of volumesOnline
  19952.  
  19953. --> "Mail Enclosures"
  19954.  
  19955. I am developing on a machine with 7 pro.  The studio scheduled to use this is
  19956. currently using system 7.  Presuming our luck with obtaining 7.5 does not get
  19957. better, they will still be running 7 through-out the coming year.
  19958.  
  19959. Can anyone either outline the AppleScript file system model or point me in a
  19960. towards a promising document?
  19961.  
  19962. As always, thank you kindly!
  19963.  
  19964. Michael
  19965. =========================================================================
  19966. Date:         Sun, 28 Aug 1994 22:37:11 -0800
  19967. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  19968. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  19969. From:         Brian Hall <mspace@NETCOM.COM>
  19970. Subject:      Re: Scriptable Fax Modem?
  19971.  
  19972. >I'd like a fax modem that can receive faxes and automatically run them
  19973. >through an OCR and save them as a text file. Any ideas?
  19974.  
  19975. I've done this with FaxSTF/AutoPak.  When you have AutoPak, STF has the
  19976. ability to run one, and only one ;-(, application in the in box - the very
  19977. first app.
  19978.  
  19979. To get around this, I wrote a script with "on open fileList" that would
  19980. then in turn call the OCR software and do my post-processing (sending to an
  19981. app of ours).  It isn't as elegant as it could be, but it seems to work
  19982. well.
  19983.  
  19984. >Maybe there is fax software out there that will do all of this without
  19985. >AppleScript?
  19986.  
  19987. See above.
  19988.  
  19989. __________________________________________________________________________
  19990. Mark/Space Softworks                                    voice 408-293-7299
  19991. 111 West Saint John, 2nd Floor                            fax 408-293-7298
  19992. San Jose, CA 95113                                        bbs 408-293-7290
  19993.  
  19994. Macintosh connectivity software:               Internet: mspace@netcom.com
  19995. Communicate, ZMODEM Tool, PageNOW!               AppleLink, AOL: MARKSPACE
  19996.                   Goodies at ftp.netcom.com in pub/mspace
  19997. =========================================================================
  19998. Date:         Mon, 29 Aug 1994 17:36:42 +1200
  19999. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  20000. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  20001. From:         Owen Watson <owen@RSNZ.GOVT.NZ>
  20002. Subject:      Changing value in string
  20003.  
  20004. A newbie question:
  20005.  
  20006. I'm having problems changing the value in a string. (the vInfo comes from a
  20007. Pagemaker tab query, if you must know).
  20008.  
  20009. set AppleScript's text item delimiters to ","
  20010. set vInfo to "4,0,27,\"  \",3,56,\"  \",3,100,\"  \",3,146,\"  \""
  20011. set first item of vInfo to 6
  20012.  
  20013. doesn't seem to change the 4 to a 6.
  20014.  
  20015. I've tried variations of the above (6 as string etc) to no result.
  20016.  
  20017. Clues?
  20018.  
  20019. _________________________________________________________________________
  20020. Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
  20021. Internet watson.o@rsnz.govt.nz  Ph: +64 4 472 7421 Fax: +64 4 473 1841
  20022. The gateway to New Zealand science: http://www.rsnz.govt.nz/
  20023. =========================================================================
  20024. Date:         Sun, 28 Aug 1994 22:43:27 -0700
  20025. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  20026. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  20027. From:         Jon Pugh <jonpugh@NETCOM.COM>
  20028. Subject:      Re: Eudora Notification
  20029.  
  20030. --========================_15140444==_
  20031. Content-Type: text/plain; charset="us-ascii"
  20032.  
  20033. Brian Hall <mspace@NETCOM.COM> wrote:
  20034. >
  20035. >Given that a few people suggested writing a OSAX to handle the Eudora "on
  20036. >notify" problem, could someone try it out and post the result? This sounds
  20037. >like the best interim solution.
  20038.  
  20039. Done.  I just cobbled together an aete and threw it into an osax.  It's not
  20040. even stuffed, it's so small.  It generates the right code, but I haven't
  20041. tried it.  I don't have a nice TCP link, only a dialup account, so it
  20042. doesn't work well here.  Just put some code into an "on notify" handler and
  20043. see if it works.
  20044.  
  20045. Good luck, experimenters.  Oh, I've also included the MPW Rez code I used
  20046. to create the aete below.
  20047.  
  20048. Jon
  20049.  
  20050.  
  20051. -=-=-=-=-=-=-
  20052.  
  20053. #include "Types.r"
  20054. #include "AERegistry.r"
  20055. #include "ASRegistry.r"
  20056. #include "AEUserTermtypes.r"
  20057.  
  20058. resource 'aete' (0, purgeable) {
  20059.         0x1,
  20060.         0x0,
  20061.         english,
  20062.         roman,
  20063.         {       /* array Suites: 3 elements */
  20064.                 /* [1] */
  20065.                 "Eudora Suite",
  20066.                 "",
  20067.                 'CSOm',
  20068.                 1,
  20069.                 1,
  20070.                 {       /* array Events: 8 elements */
  20071.                 /* [1] */
  20072.             "notify",
  20073.             "The Eudora notification message.",
  20074.             'CSOm',
  20075.             'eNot',
  20076.             noReply,
  20077.             "",
  20078.             replyOptional,
  20079.             singleItem,
  20080.             notEnumerated,
  20081.             notTightBindingFunction,
  20082.             reserved,
  20083.             reserved,
  20084.             reserved,
  20085.             reserved,
  20086.             reserved,
  20087.             reserved,
  20088.             reserved,
  20089.             reserved,
  20090.             verbEvent,
  20091.             reserved,
  20092.             reserved,
  20093.             reserved,
  20094.             cObjectSpecifier,
  20095.             "The new messages.",
  20096.             directParamRequired,
  20097.             singleItem,
  20098.             notEnumerated,
  20099.             doesntChangeState,
  20100.             reserved,
  20101.             reserved,
  20102.             reserved,
  20103.             reserved,
  20104.             reserved,
  20105.             reserved,
  20106.             reserved,
  20107.             reserved,
  20108.             reserved,
  20109.             reserved,
  20110.             reserved,
  20111.             reserved,
  20112.             {    /* array OtherParams: 1 elements */
  20113.             },
  20114.         },
  20115.         {    /* array Classes: 7 elements */
  20116.         },
  20117.         {    /* array ComparisonOps: 0 elements */
  20118.         },
  20119.         {    /* array Enumerations: 0 elements */
  20120.         },
  20121.     }
  20122. };
  20123.  
  20124.  
  20125.  
  20126.  
  20127. --========================_15140444==_
  20128. Content-Type: application/mac-binhex40; name="Eudora_Notification"
  20129. Content-Disposition: attachment; filename="Eudora_Notification"
  20130.  
  20131. (This file must be converted with BinHex 4.0)
  20132.  
  20133. :%d9eC'pbB5"1Eh4TCQPMBA4TEfi!Eh0KH'&cBh)"!!!!!!!!!!'Z"ii!!!!!!3!
  20134. !!!&m!!!!I!!!!$)!!!,D"8aPCf&M!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"0&G@4
  20135. [FQ%J6QpdD@CTBf&dD@pZ!J!!!'pcBAKKFf0b!!"[Ff&iBA0MFJ%!!5B$#!!!!!!
  20136. !!!!!!!!!!!!!!!!!!+U'['-!!!!!!!!"VJ!!!!!!!!!!!!!!!!%1*3!!!!,D#8a
  20137. )Efa3D94hE`!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!%%*3!!!!,D#%ePC'PM8f0
  20138. b!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!%2*3!!!!,D#Qej8fpeEQ4c,M)!!!!
  20139. !!!!!!!!!!!!!!!!!!!"i!3!!!!!!!!%-4A9NEh*K)&0eDA4P!%066fd!!3!"!!%
  20140. 'EQpdD@Cj)&4SC5"&G@4[FQ%JEQpdD@CTBf&dD@pZ)'ePFh0KCf8Z3e02E@91Eh4
  20141. ZG@aX!!#!!'pLDL!49'KP)'jPGb"YCA0cB@GPFbi!!!!!!!!!!!!!!!!"!!!!!A`
  20142. !!!"m!!!!-J#j#)`L+!!!!"`!-J!!B@9dC3!!!!S!!2rr)!!!!!#j#)69K!:
  20143.  
  20144.  
  20145. --========================_15140444==_--
  20146. =========================================================================
  20147. Date:         Sun, 28 Aug 1994 22:43:33 -0700
  20148. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  20149. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  20150. From:         Jon Pugh <jonpugh@NETCOM.COM>
  20151. Subject:      Generic Events
  20152.  
  20153. By the way, in any events, with or without terminology, you can use the
  20154. following keywords to label parameters.  They will be added to the event
  20155. with the appropriate keyword (i.e. keyASPrepositionAt == "at",
  20156. keyASPrepositionIn == "in", keyASPrepositionInsteadOf == "instead of",
  20157. etc.).  You don't need them in the aete.  Although, if you feel like using
  20158. these keywords in your event, you can redefine them to be any words you
  20159. like.  I've used keyASPrepositionAt for "some goobery parameter" more than
  20160. once.  Beats making up a code.  ;)
  20161.  
  20162. Jon
  20163.  
  20164. keyASPrepositionAt         keyASPrepositionIn      keyASPrepositionFrom
  20165. keyASPrepositionFor        keyASPrepositionTo      keyASPrepositionThru
  20166. keyASPrepositionThrough    keyASPrepositionBy      keyASPrepositionOn
  20167. keyASPrepositionInto       keyASPrepositionOnto    keyASPrepositionBetween
  20168. keyASPrepositionAgainst    keyASPrepositionOutOf   keyASPrepositionInsteadOf
  20169. keyASPrepositionAsideFrom  keyASPrepositionAround  keyASPrepositionBeside
  20170. keyASPrepositionBeneath    keyASPrepositionUnder   keyASPrepositionOver
  20171. keyASPrepositionAbove      keyASPrepositionBelow   keyASPrepositionApartFrom
  20172. keyASPrepositionAbout      keyASPrepositionSince   keyASPrepositionUntil
  20173. =========================================================================
  20174. Date:         Mon, 29 Aug 1994 01:42:46 -0400
  20175. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  20176. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  20177. From:         Abner Dumoff <abbyd@FREENET.SCRI.FSU.EDU>
  20178. Subject:      Re: Changing value in string
  20179. In-Reply-To:  <199408290527.AA20373@freenet3.scri.fsu.edu>
  20180.  
  20181. On Mon, 29 Aug 1994, Owen Watson wrote:
  20182.  
  20183. > A newbie question:
  20184. >
  20185. > I'm having problems changing the value in a string. (the vInfo comes from a
  20186. > Pagemaker tab query, if you must know).
  20187. >
  20188. > set AppleScript's text item delimiters to ","
  20189. > set vInfo to "4,0,27,\"  \",3,56,\"  \",3,100,\"  \",3,146,\"  \""
  20190. > set first item of vInfo to 6
  20191. >
  20192. > doesn't seem to change the 4 to a 6.
  20193. >
  20194. > I've tried variations of the above (6 as string etc) to no result.
  20195. >
  20196.  
  20197. I am confused as to whether your quotes are in the right places, what the
  20198. slashes are, and whether vinfo is broken up correctly. Is this supposed
  20199. to be a list of strings? are you using curly brackets?
  20200.  
  20201. In case I have missed something in all that, you might try:
  20202.  
  20203. set first text item of vinfo to 6
  20204.  
  20205. -AbbyD
  20206. =========================================================================
  20207. Date:         Mon, 29 Aug 1994 03:45:27 -0500
  20208. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  20209. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  20210. From:         system@MAIL1.WYETH.COM
  20211. Subject:      Service Message
  20212.  
  20213. --Boundary (ID X029HILLojuw8c6YYAET0g)
  20214. Content-type: TEXT/REPORT
  20215.  
  20216. Report on your message to: /U=Unknown/@mr.wyeth.com
  20217. Reason: Unable to transfer; message formatting problem (1)
  20218. Diagnostic: Maximum time expired (5)
  20219. Supplementary information: Message was undeliverable to Microsoft mail.  Error c
  20220. onfirming server address %ATK-E-NBP_NAMNOTFOU, Name was not found
  20221. Arrival-date: Sun, 28 Aug 1994 23:00:51 EST
  20222.  
  20223. --Boundary (ID X029HILLojuw8c6YYAET0g)
  20224. Content-type: TEXT/PLAIN; CHARSET=US-ASCII
  20225.  
  20226. From: Systems, Macintosh S
  20227. Date: Sun, Aug 28, 1994 11:00 PM
  20228. Subject: MACSCRPT Digest - 27 Aug 1994 to 29 Aug 1994
  20229. To: Mobilio, Dominick; Sabatucci, Joe
  20230. File(s): Attach.Txt1
  20231.  
  20232. Regarding Message ID : 53410092804991/446627@MAIL1
  20233.  
  20234. From: NAME: Macintosh Scripting Systems
  20235. <MAIL1::PMDF::uga.cc.uga.edu::MACSCRPT%DARTCMS1.BITNET>
  20236.  
  20237. Author: NAME: Automatic digest processor
  20238. <MAIL1::PMDF::DARTCMS1.DARTMOUTH.EDU::LISTSERV>
  20239.  
  20240. To: NAME: Recipients of MACSCRPT digests
  20241. <MAIL1::PMDF::DARTCMS1.DARTMOUTH.EDU::MACSCRPT>
  20242.  
  20243. Date      : 28-AUG-1994 23:00:51.00
  20244. There are 11 messages totalling 901 lines in this issue.
  20245.  
  20246. Topics of the day:
  20247.  
  20248.   1. Service Message
  20249.   2. Scriptable Fax Modem?
  20250.   3. Walk folders
  20251.   4. Quit from applets
  20252.   5. MACSCRPT Digest - 25 Aug 1994 to 26 Aug 1994
  20253.   6. Receiving raw Apple Events in scripts
  20254.   7. FileMaker versions
  20255.   8. Naming conflicts (was FileMaker versions)
  20256.   9. Eudora 2.1, MailShare and Notify
  20257.  10. Eudora Notification vs Frontier
  20258.  11. New version of Eudora (Better AppleScripting) (fwd)
  20259.  
  20260. ----------------------------------------------------------------------
  20261.  
  20262. Date:    Sun, 28 Aug 1994 06:11:54 -0500
  20263. From:    system@MAIL1.WYETH.COM
  20264. Subject: Service Message
  20265.  
  20266. --Boundary (ID bWuMKCP0nUniZj69FWTKOQ)
  20267. Content-type: TEXT/REPORT
  20268.  
  20269. Report on your message to: /U=Unknown/@mr.wyeth.com
  20270. Reason: Unable to transfer; message formatting problem (1)
  20271. Diagnostic: Maximum time expired (5)
  20272. Supplementary information: Message was undeliverable to Microsoft mail.  Error
  20273. confirming server address %ATK-E-NBP_NAMNOTFOU, Name was not found
  20274. Arrival-date: Sat, 27 Aug 1994 23:03:58 EST
  20275.  
  20276. --Boundary (ID bWuMKCP0nUniZj69FWTKOQ)
  20277. Content-type: TEXT/PLAIN; CHARSET=US-ASCII
  20278.  
  20279. From: Systems, Macintosh S
  20280. Date: Sat, Aug 27, 1994 11:03 PM
  20281. Subject: MACSCRPT Digest - 26 Aug 1994 to 27 Aug 1994
  20282. To: Mobilio, Dominick; Sabatucci, Joe
  20283. File(s): Attach.Txt1
  20284.  
  20285. Regarding Message ID : 85210082804991/446285@MAIL1
  20286.  
  20287. From: NAME: Macintosh Scripting Systems
  20288. <MAIL1::PMDF::uga.cc.uga.edu::MACSCRPT%DARTCMS1.BITNET>
  20289.  
  20290. Author: NAME: Automatic digest processor
  20291. <MAIL1::PMDF::DARTCMS1.DARTMOUTH.EDU::LISTSERV>
  20292.  
  20293. To: NAME: Recipients of MACSCRPT digests
  20294. <MAIL1::PMDF::DARTCMS1.DARTMOUTH.EDU::MACSCRPT>
  20295.  
  20296. Date      : 27-AUG-1994 23:03:58.00
  20297. There are 12 messages totalling 495 lines in this issue.
  20298.  
  20299. Topics of the day:
  20300.  
  20301.   1. Receiving raw Apple Events in scripts (2)
  20302.   2. Quit from applets (2)
  20303.   3. Getting custom icons in AppleScript
  20304.   4. Walk folders
  20305.   5. FileMaker versions (2)
  20306.   6. Cooperating with apps
  20307.   7. Scripting PageMaker
  20308.   8. creation of a MacScripti...
  20309.   9. MACSCRPT Digest - 25 Aug 1994 to 26 Aug 1994
  20310.  
  20311. ----------------------------------------------------------------------
  20312.  
  20313. Date:    Sat, 27 Aug 1994 00:36:54 -0700
  20314. From:    Jon Pugh <jonpugh@NETCOM.COM>
  20315. Subject: Re: Receiving raw Apple Events in scripts
  20316.  
  20317. Kiran Wagle <groo@NETCOM.COM> wrote:
  20318. >
  20319. >If anyone has an example of an event handler for an event other than the
  20320. >four required ones, I haven't seen it.
  20321. >
  20322. >But you CAN write a handler if you use those pesky angle brackets.
  20323. >
  20324. >on <<event CSOmeNot>>
  20325. >do stuff
  20326. >end
  20327. >
  20328. >--the angle brackets are special characters.
  20329. >
  20330. >It's ugly and I don't like it, but nobody's been able to tell me (or Steve)
  20331. >how to tell Applescript that notice is NOT a variable but the name of an
  20332. >event.
  20333.  
  20334. Well, I know how, but it's not quite the answer you were expecting.  In
  20335. fact, you are correct in that AppleScript can't handle general AppleEvents
  20336. worth a damn.  Mind you, I haven't actually done this, but I do know what
  20337. is involved.
  20338.  
  20339. First off, you don't send some custom event like CSOmeNot.  You send an
  20340. event that AppleScript knows, the Subroutine event.  It is listed in the
  20341. AppleScript suite document which is in the Registry folder of the
  20342. AppleScript 1.0 and 1.1 CDs.
  20343.  
  20344. Essentially, the subroutine event includes a lowercase string for the
  20345. procedure name and a record of parameters.  You send "notify" and the
  20346. parameters.  Now you write "on notify" in your script and everything works.
  20347.  
  20348.                                 -=-=-=-=-=-=-=-
  20349.  
  20350. Mark Aiken <inra@musicb.mcgill.ca> wrote:
  20351. >    I understand, although I have never written an app to test this
  20352. >myself, that apps that allow you to write scripts from within them,
  20353. >such as a hypothetical attachable and tinkerable app, don't have this
  20354. >problem because the Component Manager consults the app's 'aete'
  20355. >resource when compiling, even in the case of event handlers. I think
  20356. >Apple only considered the case of attachable/tinkerable apps when
  20357. >setting things up their current way, and didn't realize that the cur-
  20358. >rent situation creates a problems for applications such as Eudora and
  20359. >my own File Tracker, that rely on AS applets containing handlers for
  20360. >special events.
  20361. >
  20362. >    Another solution to this problem would be to ship a custom Script
  20363. >Editor with apps such as FT and Eudora, that contain the necessary
  20364. >terminology and can therefore serve as tools for writing scripts with
  20365. >the necessary event handlers. ;-)
  20366.  
  20367. The component manager doesn't do squat except route OSA calls to the
  20368. AppleScript component.  The AppleScript component is the one who sends an
  20369. event to grab an aete and use it while compiling.  Just nitpicking.  ;)
  20370.  
  20371. As for the "hypothetical" Hypercard, it uses these subroutine events for
  20372. all of its internal messages.  I recommend that you use them too.  That way
  20373. you could even write your notification in HyperTalk, and you won't have to
  20374. invent or register your own 4 character codes either.
  20375.  
  20376.                                 -=-=-=-=-=-=-=-
  20377.  
  20378. Here's the relevant passage from the AppleScript Suite document from the
  20379. 1.0 CD (my 1.1 CD is at the cleaners ;).  All of the constants are defined
  20380. in AppleScript.h.
  20381.  
  20382. Jon
  20383.  
  20384.                                 -=-=-=-=-=-=-=-
  20385.  
  20386. Subroutine Call - Call a user-defined subroutine
  20387.  
  20388. The subroutine event is sent for calls to user-defined subroutines.  They
  20389. contain the name of the event as a text string, and any parameters for the
  20390. event.  A standard set of prepositional parameters are available.
  20391.  
  20392. Event Class     kASAppleScriptSuite     'ascr'
  20393. Event ID        kASSubroutineEvent      'psbr'
  20394.  
  20395. Parameters
  20396.  
  20397. keyDirectObject
  20398.         Description:            The target, or list of arguments
  20399.         Descriptor Type:        typeObjectSpecifier or typeAEList
  20400.         Required or Optional?   Optional
  20401. keyASSubroutineName
  20402.         Description:            The subroutine name
  20403.         Descriptor Type:        typeChar
  20404.         Required or Optional?   Required
  20405. keyASPrepositionAt
  20406. keyASPrepositionAt
  20407. keyASPrepositionIn
  20408. keyASPrepositionFrom
  20409. keyASPrepositionFor
  20410. keyASPrepositionTo
  20411. keyASPrepositionThru
  20412. keyASPrepositionThrough
  20413. keyASPrepositionBy
  20414. keyASPrepositionOn
  20415. keyASPrepositionInto
  20416. keyASPrepositionOnto
  20417. keyASPrepositionBetween
  20418. keyASPrepositionAgainst
  20419. keyASPrepositionOutOf
  20420. keyASPrepositionInsteadOf
  20421. keyASPrepositionAsideFrom
  20422. keyASPrepositionAround
  20423. keyASPrepositionBeside
  20424. keyASPrepositionBeneath
  20425. keyASPrepositionUnder
  20426. keyASPrepositionOver
  20427. keyASPrepositionAbove
  20428. keyASPrepositionBelow
  20429. keyASPrepositionApartFrom
  20430. keyASPrepositionAbout
  20431. keyASPrepositionSince
  20432. keyASPrepositionUntil
  20433.         Description:            Named prepositional parameters
  20434.         Descriptor Type:        typeWildCard
  20435.         Required or Optional?   Optional
  20436. keyASUserRecordFields
  20437.         Description:            Parameters with user-defined names
  20438.         Descriptor Type:        typeUserRecordFields
  20439.         Required or Optional?   Optional
  20440.  
  20441. Reply Parameters
  20442.  
  20443. keyAEResult
  20444.         Description:            The result of the subroutine call
  20445.         Descriptor Type:        typeWildCard
  20446.         Required or Optional?   Optional
  20447. (see Replies section for additional error reply parameters)
  20448.  
  20449.  
  20450. typeUserRecordFields - List of user-defined record fields
  20451.  
  20452. A typeUserRecordFields descriptor record specifies a list of user-defined
  20453. record fields - their names and values.  The list contains alternating name
  20454. value pairs, where each name is typeIntlText and each value is of any type.
  20455.  
  20456.  
  20457. Data Size       Variable
  20458.  
  20459.  -----------------------------
  20460.  
  20461. Date:    Sat, 27 Aug 1994 00:37:03 -0700
  20462. From:    Jon Pugh <jonpugh@NETCOM.COM>
  20463. Subject: Re: Quit from applets
  20464.  
  20465. Mike Shaff <shaff@QUILTY.STANFORD.EDU> wrote:
  20466. >
  20467. >on quit {}
  20468. >        if gProjectDatabase = false then
  20469. >                StopRegistration
  20470. >        end if
  20471. >
  20472. >        -- pass quit
  20473. >end quit
  20474. >
  20475. >How do I refer to 'super' quit?
  20476.  
  20477. continue quit
  20478.  
  20479.  
  20480. Remember, if you have a script that you can't quit because you forgot this,
  20481. simply hold down the SHIFT key and your quit handler will not be called.
  20482.  
  20483. Who's got the FAQ?  Is this tip in it?
  20484.  
  20485. Jon
  20486.  
  20487.  -----------------------------
  20488.  
  20489. Date:    Sat, 27 Aug 1994 00:37:10 -0700
  20490. From:    Jon Pugh <jonpugh@NETCOM.COM>
  20491. Subject: Re: Getting custom icons in AppleScript
  20492.  
  20493. Bill Hutten <bhutten@FOX.NSTN.NS.CA> wrote:
  20494. >
  20495. >I'm writing a script that has to get the "preview" icons from files saved
  20496. >in PhotoShop. A little ResEdit work reveals that these custom icons are
  20497. >stored in icl8 resource -16455 in each PhotoShop file.
  20498. >
  20499. >How do I retrieve this resource? Do I need an osax? Ideally, I'd like to be
  20500. >able to convert the icl8 to a PICT.....
  20501.  
  20502. Scriptable Finder!
  20503.  
  20504. tell application "Finder"
  20505.     set theIcon to icon of file "foo"
  20506. end tell
  20507.  
  20508. Now what are you going to do with it?  This is an "icon family" data
  20509. record.  It has properties corresponding to the various icon resources.
  20510. You can seperate them with "<<class icl8>> of theIcon" but I don't think
  20511. this really helps.  I don't see any way to make this into a picture, and a
  20512. resource osax wouldn't help since it couldn't make it into a picture
  20513. either.
  20514.  
  20515. I see this as a limitation of the scriptable Finder.  If you do a copy from
  20516. the Get Info dialog, you get a picture too.  Ah well, nothing's perfect.
  20517.  
  20518. Jon
  20519.  
  20520.  -----------------------------
  20521.  
  20522. Date:    Sat, 27 Aug 1994 00:37:13 -0700
  20523. From:    Jon Pugh <jonpugh@NETCOM.COM>
  20524. Subject: Re: Walk folders
  20525.  
  20526. Mike Shaff <shaff@QUILTY.STANFORD.EDU> wrote:
  20527. >
  20528. >I am not certain how to phrase my question.  With that caveat:
  20529. >
  20530. >What are the performance characteristics of the Walk Folder command from Jo=
  20531. n's
  20532. >Commands (found on gaea)?
  20533. >
  20534. >I am more interested in its 'feel' than its theoretical nature.
  20535.  
  20536. Well, I was more interested in code simplicity than performance, but I'm
  20537. certain that it out-performs a comparable script.  Nevertheless, I did some
  20538. timing tests. Here's the script:
  20539.  
  20540.  
  20541. script foo
  20542.         property c : 0
  20543.         on open (theFile)
  20544.                 set c to c + 1
  20545.                 return c
  20546.         end open
  20547. end script
  20548.  
  20549. set startTime to current date
  20550. set c to walk folders alias "AppleScript=81:" with script foo
  20551. set endTime to current date
  20552. set secs to endTime - startTime
  20553. {c, secs, c / secs}
  20554.  
  20555.  
  20556. Here are the results:
  20557.  
  20558. files          seconds       files/sec
  20559.   213 (8M)        20            10.7      My Info-Mac junk folder (disk 1)
  20560.   461 (9M)        40            11.5      My AppleScript collectables (disk =
  20561. 1)
  20562.   882 (29M)       53            16.6      My PhotoFlash sources (disk 2)
  20563.   652 (70M)       22            29.6      The AppleScript 1.0 CD
  20564. 15577 (473M)    1301            12.0      All of Disk 1
  20565.  
  20566. Wow!  It's 3 times faster off CD than off my HD?  I don't know why that is.
  20567. I'll investigate, but if anyone wants to email me their results (don't
  20568. reply to the list!), I'll see if they help explain things.  ;)
  20569.  
  20570. Jon
  20571.  
  20572.  -----------------------------
  20573.  
  20574. Date:    Sat, 27 Aug 1994 02:00:36 -0700
  20575. From:    "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  20576. Subject: Re: Quit from applets
  20577.  
  20578. >Greetings,
  20579. >
  20580. >AppleScript with its varried syntax and extensions is a blast, in all senses of
  20581. >the word.  I have an applet which remains open for the vast duration of its
  20582. >life.  It is basically a network interface for a small database.  When it comes
  20583. >time for it to quit, I want to have a piece of conditional code:
  20584. >
  20585. >on quit {}
  20586. >        if gProjectDatabase = false then
  20587. >                StopRegistration
  20588. >        end if
  20589. >
  20590. >        -- pass quit
  20591. >end quit
  20592.  
  20593. continue quit
  20594.  
  20595. is the way to say the "pass quit" above.
  20596.    --John
  20597.  
  20598. --
  20599. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  20600. When was the last time you checked out the ceiling tiles in a building you
  20601. were in?
  20602.  
  20603.  -----------------------------
  20604.  
  20605. Date:    Sat, 27 Aug 1994 02:17:52 -0700
  20606. From:    "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  20607. Subject: Re: FileMaker versions
  20608.  
  20609. >Hi,
  20610. >
  20611. >I'll spare you all the heated diatribe on the topic of Claris' lame habit
  20612. >of changing the 'aete' every release and just ask questions.
  20613.  
  20614. As opposed to leaving the 'aete' (or the events described by same) broken?
  20615.  
  20616.  
  20617. >I'm in a position where I have to write scripts that will function
  20618. >regardless of the version of FileMaker Pro currently being executed.
  20619. >
  20620. >Asking for the application's version property returns the number 131092 in
  20621. >versions 2.1v2 and 2.1v3, so I haven't been able to rely upon that.
  20622.  
  20623. Looks like an oversight.  In hex, that's 00020014, which argueably makes
  20624. some sort of sense for one of those versions.
  20625.  
  20626. >What I've done in the past is to figure out what was broken in prior
  20627. >versions of FMP, and execute bits of code until it didn't fail.  For
  20628. >example 2.0 didn't support "Count windows", 2.1v1 doesn't support "get
  20629. >version", etc.
  20630. >
  20631. >With the release of 2.1v3, I haven't been able to find anything at the
  20632. >application level that will cause a failure in 2.1v2 and not in 2.1v3.
  20633. >Unfortunately, there's no real guarantee that I have a database open, so I
  20634. >can't take advantage of the fact that numeric ID properties and things like
  20635. >will fail in 2.1v2 when databases are open.
  20636.  
  20637. If there is a condition (no databases open) in which you can't tell the
  20638. difference between 2.1v2 and 2.1v3, your don't care about the difference
  20639. <at that time>, do you?  If it does matter with a database open, do your
  20640. test at the first time you notice that the count of databases is not 0.
  20641.  
  20642. -------
  20643. However, you might try asking for the version as a string (and try some
  20644. other reasonable variations).  AppleScript installs a 'vers' to anything
  20645. coercion handler (presumably it doesn't actually coerce to anything, but
  20646. rather a subset of that.  But I see that FileMaker doesn't cooperate...it
  20647. returns a number anyhow, which gets enclosed in quotes.  [That's not how
  20648. the Registry suggests doing it...the Registry way does work:  I exercised
  20649. it in a toy app I wrote for a show-and-tell.  Floating point types work,
  20650. too, in the coercion handler, BTW.]
  20651.  
  20652. -------------
  20653. However (2), I note that my 2.1v2=80 returns a version of 131089 (00020011).
  20654. Mine was the result of passing 2.1v1 through the updater Claris uploaded.
  20655. My guess would be that the updaters neglect to update the number returned
  20656. as the version property.
  20657.  
  20658.     --John
  20659.  
  20660. --
  20661. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  20662. When was the last time you checked out the ceiling tiles in a building you
  20663. were in?
  20664.  
  20665.  -----------------------------
  20666.  
  20667. Date:    Sat, 27 Aug 1994 02:21:56 -0700
  20668. From:    "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  20669. Subject: Re: FileMaker versions
  20670.  
  20671. >Somewhat off the topic, was there ever a consensus on how we're all going
  20672. >to deal with naming conflicts between 'aete's, osaxen, etc?  Since
  20673. >apparently you can do "tell document ..." to point to a specific osax, is
  20674. >it really really even a problem?  I just got done playing with an app that
  20675. >used the word "file" as its "table" term. It caused problems when
  20676. >attempting to use file specifications inside a "tell application..." block.
  20677.  
  20678. I'm dealing with the conflicts by installing only Scripting Additions I'm
  20679. actively using (and being selective about that).  AppleScript just sort of
  20680. uses one big namespace...redefining things like "file" is downright
  20681. unfriendly.
  20682.  
  20683.    --John [sorry about the double reply]
  20684.  
  20685. --
  20686. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  20687. When was the last time you checked out the ceiling tiles in a building you
  20688. were in?
  20689.  
  20690.  -----------------------------
  20691.  
  20692. Date:    Sat, 27 Aug 1994 02:32:42 -0700
  20693. From:    "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  20694. Subject: Re: Cooperating with apps
  20695.  
  20696. >Greetings,
  20697. >
  20698. >Pity the script writer!  The task of cooperating with applications becomes such
  20699. >a tiresome detail.  Does anyone know if Adobe plans on recognizing OSA?
  20700. >
  20701. >I would have thought that activate was not dependent on an application's good
  20702. >behaviour.  Not apparently so:
  20703. >
  20704. >activate application "Premiere @ 18Mb"
  20705. >
  20706. >times out.
  20707. >
  20708. >Is there a more robust way of accomplishing a context switch?
  20709.  
  20710. Given the Scriptable Finder, yes.  This should do the trick:
  20711.  
  20712. tell application "Finder"
  20713.     set frontmost of process "Premiere @ 18Mb" to true
  20714. end tell
  20715.  
  20716. Without the Scriptable Finder, there may well be an osax (or 10)...I
  20717. haven't looked.  [It's trivial to write the osax code, unless there's a
  20718. "hidden" problem.]
  20719.  
  20720.   --John
  20721.  
  20722. --
  20723. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  20724. When was the last time you checked out the ceiling tiles in a building you
  20725. were in?
  20726.  
  20727.  -----------------------------
  20728.  
  20729. Date:    Sat, 27 Aug 1994 09:31:28 -0400
  20730. From:    Jeff Boulter <boulter@BUCKNELL.EDU>
  20731. Subject: Scripting PageMaker
  20732.  
  20733. I'm doing some scripting that involves PageMaker 5.0. I just found my
  20734. little coupon do order the Script Guide, but it won't be here for 6-8 weeks.
  20735.  
  20736. Could some kind soul with the Script Guide look up how do do the following:
  20737.  
  20738. Select All of the text in the story selected with the arrow tool
  20739. copy the text the clipboard
  20740.  
  20741. get the name of the frontmost document
  20742.  
  20743. Many thanks!
  20744.  
  20745. Jeff Boulter
  20746. Managing Editor
  20747. The Bucknellian
  20748.  
  20749. --
  20750. Jeff Boulter    boulter@bucknell.edu   http://www.bucknell.edu/bucknellian/jeff
  20751.  
  20752.  -----------------------------
  20753.  
  20754. Date:    Sat, 27 Aug 1994 12:30:23 EDT
  20755. From:    Shaddar@AOL.COM
  20756. Subject: Re: creation of a MacScripti...
  20757.  
  20758. Sorry if this is late and the thread already died, but I was away for two
  20759. weeks as I moved to school and would like to put in my two cents...
  20760.  
  20761. Basically, I've found that I appreciate the functions found on a news reader
  20762. much more than those of a mail reader.  I think it is much more convenient to
  20763. use a newsgroup than a mailing list.  With the ability to make both
  20764. simultaneously, I don't see the big problem everyone has.  It seems to me
  20765. that with both linked together, everyone is happy.
  20766.  
  20767. ~Shaddar
  20768.  
  20769.  -----------------------------
  20770.  
  20771. Date:    Sat, 27 Aug 1994 10:14:17 -0800
  20772. From:    Mike Cohen <isis@NETCOM.COM>
  20773. Subject: Re: Receiving raw Apple Events in scripts
  20774.  
  20775. At 12:36 AM 8/27/94 -0700, Jon Pugh wrote:
  20776.  
  20777. >First off, you don't send some custom event like CSOmeNot.  You send an
  20778. >event that AppleScript knows, the Subroutine event.  It is listed in the
  20779. >AppleScript suite document which is in the Registry folder of the
  20780. >AppleScript 1.0 and 1.1 CDs.
  20781.  
  20782. Tell that to Steve Dorner. Unfortunately, that's how Eudora works currently.
  20783.  
  20784. Another offender is GeoQuery. You'd expect to be able to send a GetData
  20785. event, but instead you send it a custom event and instead of getting the
  20786. result in the reply, it sends you a separate event with the results.
  20787.  
  20788. _______________________________________________________________
  20789. Mike Cohen           | ISIS International
  20790. (818) 788-4747 Voice | isis@netcom.com           | ALink: D6734
  20791. (818) 501-0653 Fax   | NewtonMail, eWorld: MikeC | AOL: MikeC20
  20792. Home Page: file://ftp.netcom.com/pub/isis/home.html
  20793.  
  20794.  -----------------------------
  20795.  
  20796. Date:    Sat, 27 Aug 1994 16:56:18 -0800
  20797. From:    Brian Hall <mspace@NETCOM.COM>
  20798. Subject: Re: MACSCRPT Digest - 25 Aug 1994 to 26 Aug 1994
  20799.  
  20800. Given that a few people suggested writing a OSAX to handle the Eudora "on
  20801. notify" problem, could someone try it out and post the result? This sounds
  20802. like the best interim solution.
  20803.  
  20804. Brian Hall, Mark/Space Softworks, 408-293-7299, mspace@netcom.com
  20805.  
  20806.  -----------------------------
  20807.  
  20808. End of MACSCRPT Digest - 26 Aug 1994 to 27 Aug 1994
  20809. ***************************************************
  20810.  
  20811.  
  20812.            ************************************************
  20813.              Text attachment found and added as enclosure
  20814.            ************************************************
  20815.  
  20816.  
  20817. --Boundary (ID bWuMKCP0nUniZj69FWTKOQ)--
  20818.  
  20819. ------------------------------
  20820.  
  20821. Date:    Sun, 28 Aug 1994 09:46:23 -0800
  20822. From:    Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
  20823. Subject: Scriptable Fax Modem?
  20824.  
  20825. I'd like a fax modem that can receive faxes and automatically run them
  20826. through an OCR and save them as a text file. Any ideas?
  20827.  
  20828. Maybe there is fax software out there that will do all of this without
  20829. AppleScript?
  20830.  
  20831. Maybe there is fax software that will save incoming faxes as individual
  20832. graphics file and then there is a scriptable OCR package that can be told
  20833. to read individual graphic files?
  20834.  
  20835. Maybe for now all I can get is a fax modem that saves the files
  20836. individually into a format that I could manually OCR with any OCR package?
  20837.  
  20838. Any ideas?
  20839.  
  20840. Kee Nethery
  20841.  
  20842. ------------------------------
  20843.  
  20844. Date:    Sun, 28 Aug 1994 09:44:53 -1000
  20845. From:    Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
  20846. Subject: Re: Walk folders
  20847.  
  20848. I did a speed comparison of my folder and file processor to Jon's Commands
  20849. "walk folder" command.
  20850.  
  20851. RESULT:  Jon's Commands came out the clear winner.  It was about 6 times
  20852. faster.
  20853.  
  20854. Here are the applets I made for the test:
  20855.  
  20856. --------------------------------------------------------------------------------
  20857. property c : 0
  20858.  
  20859. on open (theFilesAndFolders)
  20860.         set c to 0
  20861.         set startTime to current date
  20862.         RecursionNavigate(theFilesAndFolders)
  20863.         set endTime to current date
  20864.         set secs to endTime - startTime
  20865.         display dialog (c as string) & " files in " & secs & " seconds ("
  20866. & c / secs & " files/second)"
  20867. end open
  20868.  
  20869. on RecursionNavigate(theFilesAndFolders)
  20870.         repeat with currentItem in theFilesAndFolders
  20871.                 if (info for currentItem) is folder then
  20872.                         set folderContents to (list folder (currentItem))
  20873.                         set fullPathNameList to {}
  20874.                         repeat with i in folderContents
  20875.                                 set fullPathName to (currentItem as
  20876. string) & i
  20877.                                 if (info for fullPathName) is folder then
  20878.                                         set fullPathName to (fullPathName
  20879. as string) & ":"
  20880.                                 end if
  20881.                                 set end of fullPathNameList to fullPathName
  20882.                         end repeat
  20883.                         RecursionNavigate(fullPathNameList)
  20884.                 else
  20885.                         set c to c + 1
  20886.                 end if
  20887.         end repeat
  20888. end RecursionNavigate
  20889. --------------------------------------------------------------------------------
  20890.  
  20891. on open (theFilesAndFolders)
  20892.         script foo
  20893.                 property c : 0
  20894.                 on open (theFile)
  20895.                         set c to c + 1
  20896.                         return c
  20897.                 end open
  20898.         end script
  20899.  
  20900.         set startTime to current date
  20901.         set c to walk folders theFilesAndFolders with script foo
  20902.         set endTime to current date
  20903.         set secs to endTime - startTime
  20904.         display dialog (c as string) & " files in " & secs & " seconds ("
  20905. & c / secs & " files/second)"
  20906. end open
  20907.  
  20908.  
  20909. --peter
  20910.  
  20911. ------------------------------
  20912.  
  20913. Date:    Sun, 28 Aug 1994 15:20:42 -0500
  20914. From:    Fred Terry <pfterry@LKS.CSI.COM>
  20915. Subject: Re: Quit from applets
  20916.  
  20917. Jon said....
  20918.  
  20919. >If you have a script that you can't quit because you forgot this,
  20920. >simply hold down the SHIFT key and your quit handler will not be called.
  20921. >
  20922. >Who's got the FAQ?  Is this tip in it?
  20923.  
  20924. Yes, it is.
  20925.  
  20926. pf
  20927.  
  20928. ------------------------------
  20929.  
  20930. Date:    Sun, 28 Aug 1994 16:22:21 -0500
  20931. From:    Charles Wiltgen <cwiltgen@MCS.COM>
  20932. Subject: Re: MACSCRPT Digest - 25 Aug 1994 to 26 Aug 1994
  20933.  
  20934. >Given that a few people suggested writing a OSAX to handle the Eudora "on
  20935. >notify" problem, could someone try it out and post the result? This sounds
  20936. >like the best interim solution.
  20937.  
  20938. BTW, has anyone been experimenting with 1.5, which is supposed to have
  20939. improved AppleScript support?
  20940.  
  20941.  
  20942. --
  20943. Charles Wiltgen    "Love is a snowmobile racing across the tundra and
  20944. cwiltgen@mcs.com    then suddenly it flips over, pinning you underneath.
  20945. (INTP)              At night, the ice weasels come." - Nietzsche (Groening)
  20946. World Wide Web      http://venus.mcs.net/~cwiltgen/home.html
  20947.  
  20948. ------------------------------
  20949.  
  20950. Date:    Mon, 29 Aug 1994 09:52:00 +1200
  20951. From:    "Lawrence D'Oliveiro, Waikato University, Hamilton,
  20952.          NZ" <LDO@WAIKATO.AC.NZ>
  20953. Subject: Re: Receiving raw Apple Events in scripts
  20954.  
  20955. Mike Cohen <isis@NETCOM.COM> writes:
  20956.  
  20957. >At 12:36 AM 8/27/94 -0700, Jon Pugh wrote:
  20958. >
  20959. >>First off, you don't send some custom event like CSOmeNot.  You send an
  20960. >>event that AppleScript knows, the Subroutine event.  It is listed in the
  20961. >>AppleScript suite document which is in the Registry folder of the
  20962. >>AppleScript 1.0 and 1.1 CDs.
  20963. >
  20964. >Tell that to Steve Dorner. Unfortunately, that's how Eudora works currently.
  20965.  
  20966. Here's a possible way around this. Write an osax which handles the CSOm/eNot
  20967. message. This gives you a system-wide handler for this event. There's no need
  20968. to give it an aete, since you're never going to to call it from AppleScript--
  20969. only Eudora is going to send this event. What the osax does is send an
  20970. ascr/psbr event to the current process, using a subroutine name of your
  20971. choice, and passing on the arguments from the CSOm/eNot event.
  20972.  
  20973. Basically, it's an "event redirector" osax.
  20974.  
  20975. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  20976. Info & Tech Services Division              fax: +64-7-838-4066
  20977. University of Waikato            electric mail: ldo@waikato.ac.nz
  20978. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  20979.  
  20980. ------------------------------
  20981.  
  20982. Date:    Sun, 28 Aug 1994 19:39:43 -0400
  20983. From:    Chris LeCroy <lecroy@IDS.NET>
  20984. Subject: Re: FileMaker versions
  20985.  
  20986. >>I'll spare you all the heated diatribe on the topic of Claris' lame habit
  20987. >>of changing the 'aete' every release and just ask questions.
  20988. >
  20989. >As opposed to leaving the 'aete' (or the events described by same) broken?
  20990.  
  20991. Well, no. As opposed to doing it correctly once and for all. They've had
  20992. almost two years, now...
  20993.  
  20994. >>What I've done in the past is to figure out what was broken in prior
  20995. >>versions of FMP, and execute bits of code until it didn't fail.  For
  20996. >>example 2.0 didn't support "Count windows", 2.1v1 doesn't support "get
  20997. >>version", etc.
  20998. >>With the release of 2.1v3, I haven't been able to find anything at the
  20999. >>application level that will cause a failure in 2.1v2 and not in 2.1v3.
  21000. >>Unfortunately, there's no real guarantee that I have a database open, so I
  21001. >>can't take advantage of the fact that numeric ID properties and things like
  21002. >>will fail in 2.1v2 when databases are open.
  21003. >
  21004. >If there is a condition (no databases open) in which you can't tell the
  21005. >difference between 2.1v2 and 2.1v3, your don't care about the difference
  21006. ><at that time>, do you?  If it does matter with a database open, do your
  21007. >test at the first time you notice that the count of databases is not 0.
  21008.  
  21009. [Whoops, sorry... I wasn't very clear in my earlier comments.]
  21010.  
  21011. Actually, I do care. I have an application that generates scripts that need
  21012. to be syntactically correct based upon the version of FileMaker they're
  21013. being generated for. Of course, I could start making trial and error
  21014. OSACompile() calls on top of my trial and error AppleScript calls, but I'm
  21015. afraid people might start calling me silly to my face, then.
  21016.  
  21017. I've since slapped together a 'vers' and will rely upon that, as opposed to
  21018. the kludgy way I've been doing it in the past.
  21019.  
  21020.  
  21021.  
  21022. ---
  21023. Chris LeCroy - lecroy@ids.net
  21024. SouthBeach Software Corp.
  21025.  
  21026. ------------------------------
  21027.  
  21028. Date:    Sun, 28 Aug 1994 19:39:55 -0400
  21029. From:    Chris LeCroy <lecroy@IDS.NET>
  21030. Subject: Naming conflicts (was FileMaker versions)
  21031.  
  21032. >>Somewhat off the topic, was there ever a consensus on how we're all going
  21033. >>to deal with naming conflicts between 'aete's, osaxen, etc?  Since
  21034. >>apparently you can do "tell document ..." to point to a specific osax, is
  21035. >>it really really even a problem?  I just got done playing with an app that
  21036. >>used the word "file" as its "table" term. It caused problems when
  21037. >>attempting to use file specifications inside a "tell application..." block.
  21038. >
  21039. >I'm dealing with the conflicts by installing only Scripting Additions I'm
  21040. >actively using (and being selective about that).  AppleScript just sort of
  21041. >uses one big namespace...redefining things like "file" is downright
  21042. >unfriendly.
  21043.  
  21044. They've since fixed the poor naming decision.
  21045.  
  21046. BTW, "file" shows as an application keyword in Script Editor.  Are there
  21047. certain *application* keywords owned by AppleScript or are developers in a
  21048. position of having to make educated guesses when designing AppleScript
  21049. terminologies? (I don't have Apple's AppleScript docs, yet, so be easy on
  21050. me if the answers are there...)
  21051.  
  21052. Sorry, I was a little vague in my comments regarding name pollution.  I'm
  21053. not really too worried about *my* ability to muddle through name conflicts.
  21054. I'm worried about the average user.  As it stands there are probably 50-100
  21055. (wild ass guess) osaxen generally available.  What happens when there are
  21056. 500?  What happens when (for whatever reason) osaxen begin to appear as
  21057. installer pieces to commercial applications and there are terminology
  21058. conflicts between them?  Does anyone else see this as a potential
  21059. nightmare?
  21060.  
  21061. >     --John [sorry about the double reply]
  21062. >jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  21063.  
  21064. Nope, my fault for throwing two unrelated topics into one posting.
  21065.  
  21066.  
  21067. ---
  21068. Chris LeCroy - lecroy@ids.net
  21069. SouthBeach Software Corp.
  21070.  
  21071. ------------------------------
  21072.  
  21073. Date:    Mon, 29 Aug 1994 13:41:48 +1200
  21074. From:    Owen Watson <owen@RSNZ.GOVT.NZ>
  21075. Subject: Eudora 2.1, MailShare and Notify
  21076.  
  21077. So I don't reinvent the wheel, is there a script out there that will
  21078. receive and process the notifications posted by MailShare of new mail for
  21079. Eudora?
  21080.  
  21081. _________________________________________________________________________
  21082. Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
  21083. Internet watson.o@rsnz.govt.nz  Ph: +64 4 472 7421 Fax: +64 4 473 1841
  21084. The gateway to New Zealand science: http://www.rsnz.govt.nz/
  21085.  
  21086. ------------------------------
  21087.  
  21088. Date:    Sun, 28 Aug 1994 18:50:24 -0700
  21089. From:    "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  21090. Subject: Eudora Notification vs Frontier
  21091.  
  21092.    I've been watching the discussions here about receiving the incoming
  21093. mail notification event from Eudora.
  21094.  
  21095.    It's time to mention that doing so is trivial in Frontier (or Frontier
  21096. Runtime).
  21097.  
  21098. Here's a simple handler (I think it came with some sample Eudora scripting
  21099. code from Leonard Rosenthol)
  21100.  
  21101. on eNot(msgList)
  21102.     speaker.beep()
  21103.     eudora.examples.eudoraHandler(msgList)
  21104.  
  21105. This script would be placed in a table named CSOm, which would be in
  21106. system.verbs.traps.  (That's how incoming events can be passed to
  21107. handlers...it's used with misc.dosc, in Frontier as shipped.)
  21108.  
  21109.    --John
  21110.  
  21111. --
  21112. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  21113. When was the last time you checked out the ceiling tiles in a building you
  21114. were in?
  21115.  
  21116. ------------------------------
  21117.  
  21118. Date:    Sun, 28 Aug 1994 17:59:06 -1000
  21119. From:    Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
  21120. Subject: New version of Eudora (Better AppleScripting) (fwd)
  21121.  
  21122. Sorry if this has already been posted here.  I haven't seen it here yet
  21123. though.
  21124.  
  21125. ---------- Forwarded message ----------
  21126. Date: Sun, 28 Aug 1994 16:52:57 -1000
  21127. Subject: New version of Eudora (Better AppleScripting)
  21128.  
  21129. >
  21130. >Test versions of Eudora 1.5 (free) and 2.1 (commercial, updater from 2.0.3)
  21131. >are now available on our ftp site (ftp.qualcomm.com, quest/mac/eudora/beta
  21132. >subdirectory).
  21133. >
  21134. >These are TEST versions.  They may have bugs.  They do not have much
  21135. >documentation.  If you're not the adventurous sort, leave them alone.  If
  21136. >you do use them, be sure to report bugs to eudora-bugs@qualcomm.com.
  21137. >
  21138. >The test versions will expire on October 1, 1994; we'll have non-expiring
  21139. >ones out long before that.
  21140. >
  21141. >The changes in 1.5 are primarily performance improvements and a greatly
  21142. >improved AppleScript dictionary.  Besides including the same performance
  21143. >and AppleScript improvements as 1.5, 2.1 has some new features, including
  21144. >support for dragging messages between mailboxes, kerberos, improved server
  21145. >message management, and message color-coding.
  21146. >
  21147. >More information, including release notes, is available on the ftp site.
  21148. >
  21149. >--
  21150. >Steve Dorner, Qualcomm Incorporated
  21151. >  Whosoever has lived long enough to find out what life is, knows how deep a
  21152. >  debt of gratitude we owe to Adam.  He brought death into this world.
  21153. >                                                                Mark Twain
  21154. >
  21155.  
  21156.  
  21157.  
  21158. ----------------------------------------------------------------------
  21159. MCIP mailing list <mcip@netcom.com>. Subscriptions: qwerty@netcom.com.
  21160.     No crypto code. Archive: ftp.netcom.com in /pub/qwerty/MCIP.
  21161.  
  21162. ------------------------------
  21163.  
  21164. End of MACSCRPT Digest - 27 Aug 1994 to 29 Aug 1994
  21165. ***************************************************
  21166.  
  21167.  
  21168.            ************************************************
  21169.              Text attachment found and added as enclosure
  21170.            ************************************************
  21171.  
  21172.  
  21173. --Boundary (ID X029HILLojuw8c6YYAET0g)--
  21174. =========================================================================
  21175. Date:         Mon, 29 Aug 1994 10:02:05 +0100
  21176. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21177. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21178. From:         Johan Solve <johan.solve@ITN.HH.SE>
  21179. Subject:      QuickTake software scriptable?
  21180.  
  21181. I have read somewhere that you could control the QuickTake camera with
  21182. AppleScript. But the QuickTake application doesn't have a dictionary, so I
  21183. can't find out how to do it.
  21184. Possibly I am wrong about the scriptability. What's the deal? Is it
  21185. possible to script the camera? If so, how is it done?
  21186.  
  21187. ____________________________________________________________________
  21188.          "
  21189.   JOHAN SOLVE                Department of Science and Technology
  21190.   <johan.solve@itn.hh.se>    University College of Halmstad, Sweden
  21191. =========================================================================
  21192. Date:         Sun, 28 Aug 1994 17:31:47 -0600
  21193. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21194. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21195. From:         "Andy Cemelli [remote]" <ANDYC@WORDPERFECT.COM>
  21196. Subject:      Scriptable Fax Modem? -Reply
  21197.  
  21198. Kee, we are currently working on alpha/beta for ExpressFax+ that does
  21199. just that...
  21200.  
  21201. Incoming Faxes can be OCR'd and i checked, it is scriptable....the
  21202. dictionary follows...
  21203.  
  21204. >>> Kee Nethery +1 510 843 6140 <kee@KAGI.COM> - 8/28/94 12:46 PM >>>
  21205. I'd like a fax modem that can receive faxes and automatically run
  21206. them through an OCR and save them as a text file. Any ideas?
  21207.  
  21208. Maybe there is fax software out there that will do all of this
  21209. without
  21210. AppleScript?
  21211.  
  21212. Maybe there is fax software that will save incoming faxes as
  21213. individual graphics file and then there is a scriptable OCR package
  21214. that can be told to read individual graphic files?
  21215.  
  21216. Maybe for now all I can get is a fax modem that saves the files
  21217. individually into a format that I could manually OCR with any OCR
  21218. package?
  21219.  
  21220. -----------------------
  21221.  
  21222. TextBridge suite: Subset of the required and core suites used by
  21223. TextBridge
  21224.  
  21225. run: Sent to an application when it is double-clicked
  21226. #run
  21227.  
  21228. open: Open the specified list of image files and add them to the
  21229. image queue
  21230. #open  alias  -- List of image files to open and add to the image
  21231. queue
  21232.  
  21233. quit: Quit application
  21234. #quit
  21235. ##[saving  yes/no/ask]  -- Specifies whether or not to save the
  21236. document being processed
  21237.  
  21238. close: Close a window
  21239. #close  reference  -- the object to close
  21240.  
  21241. count: Return the number of elements of a particular class within an
  21242. object
  21243. #count  reference  -- the object whose elements are to be counted
  21244. ##each  type class  -- the class of the elements to be counted
  21245. #Result:   integer
  21246.  
  21247. create: Create a new element (zones only)
  21248. #create
  21249. ##new  type class  -- the class of the new element
  21250. ##with properties  record  -- the initial values for the properties
  21251. of the element
  21252. #Result:   reference
  21253.  
  21254. delete: Delete an element from an object (zones only)
  21255. #delete  reference  -- the element to delete
  21256.  
  21257. exists: Verify if an object exists
  21258. #exists  reference  -- the object in question
  21259. #Result:   boolean
  21260.  
  21261. get: Get the data for an object
  21262. #get  reference  -- the object whose data is to be returned
  21263. ##[as  type class]  -- the desired types for the data, in order of
  21264. preference
  21265. #Result:   anything
  21266.  
  21267. save: "Go" and save the results
  21268. #save
  21269. ##[in  alias]  -- The file where the processed text should be stored,
  21270. and/or the basename for the file where the page images should be
  21271. stored
  21272. ##[waiting  yes/no]  -- Specifies whether or not to wait for
  21273. processing to finish
  21274.  
  21275. set: Set an object's data
  21276. #set  reference  -- the object to change
  21277. ##to  anything  -- the new value
  21278.  
  21279. resume: Resume (continue) processing
  21280. #resume
  21281.  
  21282. stop: stop processing
  21283. #stop
  21284. ##[saving  yes/no/ask]  -- Specifies whether or not processing
  21285. results should be saved before stopping
  21286.  
  21287. select: Select a zone or window
  21288. #select  reference  -- the zone or window to select
  21289.  
  21290. Class application: An application program
  21291. Elements:
  21292. #setting by numeric index, by name
  21293. #zone by numeric index
  21294. #window by numeric index, by name
  21295. Properties:
  21296. #class  type class  [r/o]  -- the class
  21297. #frontmost  boolean  [r/o]  -- Is this the frontmost application?
  21298. #name  string  [r/o]  -- the name
  21299. #version  version  [r/o]  -- the version number of the application
  21300. #status  idle/processing/previewing/verifying  [r/o]  -- the status
  21301. of the application
  21302. #pages  small integer  [r/o]  -- the number of pages completed for
  21303. the current document
  21304.  
  21305. Class window: A window
  21306. Plural form:
  21307. #windows
  21308. Properties:
  21309. #bounds  bounding rectangle  -- the boundary rectangle for the window
  21310. #position  point  -- the position of the window
  21311. #class  type class  [r/o]  -- the class
  21312. #closeable  boolean  [r/o]  -- Does the window have a close box?
  21313. #titled  boolean  [r/o]  -- Does the window have a title bar?
  21314. #index  integer  [r/o]  -- the number of the window
  21315. #floating  boolean  [r/o]  -- Does the window float?
  21316. #modal  boolean  [r/o]  -- Is the window modal?
  21317. #resizable  boolean  [r/o]  -- Is the window resizable?
  21318. #zoomable  boolean  [r/o]  -- Is the window zoomable?
  21319. #zoomed  boolean  -- Is the window zoomed?
  21320. #name  string  [r/o]  -- the title of the window
  21321. #visible  boolean  [r/o]  -- Is the window visible?
  21322.  
  21323. Class setting: A setting
  21324. Plural form:
  21325. #settings
  21326. Properties:
  21327. #class  type class  [r/o]  -- the class
  21328. #name  string  [r/o]  -- the name
  21329. #value  anything  -- the value
  21330.  
  21331. Class zone: A zone
  21332. Plural form:
  21333. #zones
  21334. Properties:
  21335. #class  type class  [r/o]  -- the class
  21336. #depth  small integer  [r/o]  -- The depth (stacking order) of the
  21337. zone
  21338. #bounds  bounding rectangle  -- The bounds (in 1000's of an inch)
  21339. =========================================================================
  21340. Date:         Mon, 29 Aug 1994 12:12:03 -0700
  21341. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21342. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21343. From:         Roel Vertegaal <R.Vertegaal@BSK.UTWENTE.NL>
  21344. Subject:      Re: Eudora Notification
  21345.  
  21346. >Done.  I just cobbled together an aete and threw it into an osax.  It's not
  21347. >even stuffed, it's so small.  It generates the right code, but I haven't
  21348. >tried it.  I don't have a nice TCP link, only a dialup account, so it
  21349. >doesn't work well here.  Just put some code into an "on notify" handler and
  21350. >see if it works.
  21351. >
  21352. >Good luck, experimenters.  Oh, I've also included the MPW Rez code I used
  21353. >to create the aete below.
  21354. >
  21355.  
  21356. Excellent. It works, and in the background too:
  21357.  
  21358. on notify(messages)
  21359. beep
  21360. end
  21361.  
  21362. But how do I extract single message items out of the messages parameter?
  21363. What is the format of the messages list?
  21364.  
  21365. Roel Vertegaal
  21366.  
  21367.  
  21368.         +----------------------------------------------------------+
  21369.         |               Department of Ergonomics                   |
  21370.         |                 University of Twente                     |
  21371.         |            P.O. Box 217, 7500 AE Enschede                |
  21372.         |                   The Netherlands                        |
  21373.         |                phone: +31 53 89 33 24                    |
  21374.         |                fax:   +31 53 35 66 95                    |
  21375.         +----------------------------------------------------------+
  21376. =========================================================================
  21377. Date:         Mon, 29 Aug 1994 07:44:15 EDT
  21378. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21379. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21380. From:         "Sean M. Joyce" <sjoyce@HEIDELBERG.EDU>
  21381. Subject:      Eudora-Sorting incoming mail
  21382.  
  21383. Hello.
  21384.  
  21385. Please forgive what appears to be either a new user question or a FAQ.
  21386. I've looked in most of the FAQs I could find, but haven't come across the
  21387. information I'm looking for.
  21388.  
  21389. A while back on this list there were several posts about scripting Eudora
  21390. (including the freeware version) to sort incoming mail into specific
  21391. mailboxes.  Could someone point me in the right direction to find such
  21392. examples?
  21393.  
  21394. TIA for any help.
  21395.  
  21396. Sean Joyce
  21397. sjoyce@heidelberg.edu
  21398. =========================================================================
  21399. Date:         Mon, 29 Aug 1994 14:18:46 -0700
  21400. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21401. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21402. From:         Roel Vertegaal <R.Vertegaal@BSK.UTWENTE.NL>
  21403. Subject:      Eudora Announcer 1.0 Script
  21404.  
  21405. --========================_14526749==_
  21406. Content-Type: text/plain; charset="us-ascii"
  21407.  
  21408. Eudora Announcer 1.0.
  21409. Copyright 1994 Roel Vertegaal and Ronald Leenes, University of Twente,
  21410. Netherlands. All rights reserved.
  21411.  
  21412. This little applet should be dropped in the Startup Items Folder. It will
  21413. get a notification event (in background !!) from Eudora once you have
  21414. notified Eudora to do so by using the Eudora Notify Controller. When new
  21415. mail has arrived it will tell you the sender and the subject of the new
  21416. messages using the Speech Manager.
  21417.  
  21418. Thanks to Jon Pugh <jonpugh@NETCOM.COM> for his notify AETE and mark
  21419. Alldrit for his Gestalt OSAX.
  21420.  
  21421. Requires: Speech Manager, Gestalt OSAX, Applescript, Apple Macintosh
  21422. Computer, Patience.
  21423.  
  21424. This applet is freeware. However, we have never turned down complimentary
  21425. copies of software. This applet comes as-is!
  21426.  
  21427. ***************************
  21428. R.Vertegaal@bsk.utwente.nl
  21429. romix@bsk.utwente.nl
  21430.  
  21431.  
  21432.  
  21433. --========================_14526749==_
  21434. Content-Type: application/mac-binhex40; name="Eudora_Announcer_1.0.sit"
  21435. Content-Disposition: attachment; filename="Eudora_Announcer_1.0.sit"
  21436.  
  21437. (This file must be converted with BinHex 4.0)
  21438.  
  21439. :'%9eC'pbB5""EQj[G@jMCA)J-5i`,R0TG!"6594%8dP8)3%!!!!Gp`!!!!#pV&0
  21440. *9#%!!3!!(IGb6'&e!J!!!!!@!!!0!"4&G@4[FQ%J3@jZEh9ZBf9b)$%Z-!!!J!!
  21441. !!!!!XZSJUAJ!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!2rrrrp"8&"-BA"XG#%
  21442. !US%JK+U(R!F!!$M,!!!!!!!!(A%!!!!!jPi!!!!!!!!!!)*d$F$9-62m"8#r3Cl
  21443. F%CjpANCl[ml2c)(Afb62+lhb'YRDfmZTHI(eDj!!TCGGlcI`&YkEAhTHqE'Vq1H
  21444. JLEd,fcD)GeUX*MEaRH4hjNGj6Ya'@i%0lrTe26`*p0Mfk'CN)I!iJ355KIa#)*N
  21445. XC!E*,`6L#4lilE`X)N9%Cjj-0"&rpA#c'dkid9M5EBQe4C1KqKk,jlUKH$`@G`&
  21446. c+[P1VQLVMm@$ERNd#S#k80`G9ecUeX9D9eX!+&mNrd8,JUf4j&#L0HS4&,hrhAH
  21447. eHkh*6(UU,C`-Z8&hC9-i%LTfjc@iUf0YEL6F((,$b6&ZSLR@&UQ2RTVdbPU$Upd
  21448. 'c#'FR(j'A4$Y*pf'F,6H66D&h)T9b9!d%Bj&J4#Tae#3!*'kkY@*C+M&R4910!p
  21449. -BmCD3kBf%Ui,4HX`KPAH-(,IQa,M3cJHre-NlmE)[f'j4"Y(E4KHf6Dc*ZE'fk3
  21450. 6m#94&`qh*YeJDbZD#LBaKc(Hb&VD%M+N1+*`0*%-4L*Z16"#e4jH-GVUArE2"-P
  21451. qB`TQ"a2e5mUV`E&aTI,23j8r(j04C*&2bBJdFUSjMHLhb)r+ET5M%9J4Mpc%+HU
  21452. Z%&#!ZY0%+R8AKeSM`EU3!$YXB6!F'HDZ$#HE2%T%JbdK0qDa-1kQLBkKSL2mF[$
  21453. 2T4iD!4S6YK-Ii3l&4k!Eh#%32I#hbG%)-VfMCkd4@*Gj@B[r3RN1JT'Pe,-a**a
  21454. )*PT$SEUQB$)CcjC8HbAP+0'84kV&`eD8(k"mp1C2*K0e-J(d4Q2T9$F4LS6UNY!
  21455. 'd3H$l5i-4S108!,T+ecEPJ`Pc"JGr!ZSTdD3!*e4,qUY%AJcmP%hISIk1!K1,k9
  21456. qlmkST6(H'JmP3Y&NYY"dZl!a[XJ8DZTMjZ8M2rrCahq@+I@Q-fLX@aY1JQ9"dB*
  21457. kNBP3`QM8Hr-+V3SRNZPCpF6r*1UV%@3TGjMI9RaB+2Hf326&[am9DJ4TL1&d-Vq
  21458. Pk@6bAq!0GcMeT`(m*VqKNE#QBM#%aJE5))d!Q0f3!-qR`IbkTX(NQqIeN!$2Ik)
  21459. Kj0S)#iZVkfSLFc$Y)R`CDDUT@&DM!D&LAVSE[qE`Drp1kKabbFIY0*4IY4(kED'
  21460. 'TU'QR4abq""qrmQr((j9Z2'k#1-J`m4m+Z#$0KqNA+Ff&P[4%)`N0!d`SYN(-aa
  21461. Qd6"-I6LGSK&i$1J$$KfJ%Ib+ME#`1,%k%DZ2a"U$LHCiKJ(#"NdM6)Yp`0#4!4T
  21462. *-fRUqhbZa-k4RNfaUaG&3X%%YT[d0S#a"f@&LDpfJih"F(5SahYq4CKp#[kRmRi
  21463. Y@jI-T$m0iCIj*GjRmmZB56#d)RNjpUGS@b6#[!i,bcU5R1+AT)9p%ZbAi%hK`aX
  21464. 5[#9Y&H)rLNl6#,+DXTIh+0iV%(X%iM6mLfLd4Q#&28,fS$%d9L0)k`2aLe6-Zff
  21465. %KF8cUkYD3KKcCK,ba@S[!k',-rT#9-+l0*9Np)*iTm-lb5fP2%KJ0,5b*C4)J#i
  21466. *,emC@VN`R9Hm5fDi@qJm0V2R"+R8SP)-BKbGVK&B9@N92i2'D`5@N!$8$j'E3"-
  21467. e!L[UjI2T6*UN%AL8e4#j(6E[J2T%@fUaCdc+i'JkLbC,i1%iT(QlcGZ"%fTE@+e
  21468. TFJE(SE0TLNCJbCDB#p9kJDED#$bN'CUQQJjkB'@C&U"TXMM0L`Tr0%daS(l+jHG
  21469. TZSh!!jfYDES"cF'U9KDJ-L5%NS#Ff%QHjaaqM[U88Qid&QYS563Q+,Fb9Y@`%"Q
  21470. 0P6@l,jAR8lRDRb[%P))bYGf`mlm!q)6bC5"B-"*1H+eq@QD8X`#V5bLVN!$[EId
  21471. PTkfD-FYE!I[kCHhmIrf2VV[[V29hLY-JNdM[kMhI"h'N6AHfC`J)'l$K@he4paT
  21472. Q0G+-D[,-@%Y,@c5pY#FQ(dAdFZ$Z*YS8E'JeM2*"2FqLmkQ0[N"hU1`bG2c,A4b
  21473. URl8b''miA[mhZ[MMXG$rTBK``+,6mCp"-c8#6`ClBfqB448D!E4E)9r)Ik6Cr!F
  21474. EB@&aA5`HUS22dlRE&D3hQpP'ERT6(rkp`lrr5+XYrS2S9%@R6[h1iGp4re*b4+F
  21475. %@D6+%DN5@#3Y,%`@cD'j'S%hV`(BaHE4I)h!ZXM,Zh31,G!)[,B'd%$qVF1rr8$
  21476. q&TLGBb!@ZiAmV+D&TJr*9e+94Z$eJIfAIq2`Edk-4e19%G0"f)prlH0INe,mV!a
  21477. jIZH3!(rPm+pSB#N&2+-R6Bjd0Nd0LqCLc)[iPjS@8EIc[D8m51Ib,fJa9I-cQXi
  21478. eUmeBZSKU,+S"f")k6b2`9TZa'-05@UB4H$$M--6c,HL3!%8Ad)8DJ8HGFGJG,U+
  21479. ,03*[3aQ("H35@Ui4U(()Rde6HC[0fla9ScUNDAN'jfbkP))DJEH86++cqHG8Db2
  21480. )l$beCYcBLrKTKjqQ`D@NkpVLF5beKMICY''1aRM6[8fL1UVA#,cH*Y!NhNSK'd&
  21481. Q5`SCLNh%BYB3S)CM@e+p!4e(%rJTDV34C,DN4J1+KBqD!Y68Z59Gh%R-RcRm-mS
  21482. Y*AmL@Jpq@(3KrQ(qUDD`)8`CH(3C0@X%hV$+)"i4DY%)2-,-T`AmT-e2'X+dD@V
  21483. *i-bR+-8d!QmqFfJqra1efJJbK'NeBjK,mrJR$[rN)m,%-Vh0SFX*kqMPTVGC0)G
  21484. r6!NE3BB`#62l#NKd-N$*Bi5*'p!bQX8rSMBE3BB`E3B8U`'Y#0#+6X)dGa,QK`l
  21485. rN!"kP&+h41ePG8RCZhmU#-X-p&LXmq8@R3IBPIb%TT@b8"!%l5,q!DhL,3j#%@@
  21486. a@F8CTYb-4fc"BV9S09fK%ALJjp*5rNGD`iml#!Y,bBCaea*-L[p)pQ`[9iQF4@X
  21487. !I#9rAp19CNbLPppcq([(H-hIPq"aQHF9q(q-[k[TB`B1UXQ21IcBHe2pVJ4E*(J
  21488. #@b*8q(qaFl(TCb3FQHmir*erdhY0e3E[9"V&hhEifmHh&FA2b"4q+D-EMIp9Y&B
  21489. Mb2Sbhq*[+[k@q$,I&)Leq+qMUc8#cjHa3FleG)d%(UX%mKYd,6rU)2`EUkj&)ar
  21490. R4c4p[*2m$c[m-28YT4jBkQ"@bFiXU@S[C6'-I)XI&6Qi*Q2$E+"2@23*Y2**ZNi
  21491. Mm$49PZ6Vk3D0)'Y$I#T!RqS8R"XkHhl)iBHS9bPePm95TL3*-k,V!2CTqSa'i2Q
  21492. BI[SbICCZj+r664S*DhEDd[NlZPNMm(Bq2cb6cr'$QMj(9S9Ahjdq6er3#,b@rI!
  21493. T(h$iJ3r'V,(AHe1$J8kh"1J@0+$JN`N$(j6Ch@`D&H*pNHp(B"U9r+edQ`4HSr$
  21494. !q4r`kfVdYSbl&+$EmC0'aAC$SrG,ScFDN[A#l[-PLlk%bVqR,fX%RQIGLhVaeq"
  21495. !)!$q(G#1%I$!NmDr6mBm@cN"fc[Dk(RlBA2`--TVd!+4,,U6lp0dTk'X0,Q"0QS
  21496. %hR4l`DHlLcGVZSXXZBq3!2aAk'k0)&drPZlK6CVZ-5Z,j1qPVfS%[M0KU2HQXIa
  21497. 9q#DEEB4q'bi`V-"0"VXI60llq&j0paNV%AQqKqqQVpPm6pTSM68d*#+aD+2a0$+
  21498. QjYeLLAd0V[&Ak"rSIKZKhfj0a"SddKk6B(,6!`&k)%[C(,SIF(I4Jlc44LK`iDL
  21499. Q"c[hr`d1ErL!SMQm8GKiVl"aXaRH-"LJAqFl0AhG$!pj[S1r6!rCI-H*iAeCT[%
  21500. 3T[(hp$!pBL2-$1pK-l`4f#`H$G#M@4R)S8F!pbAk"YpZ)m`-laZGDm9Y$Yr@0Ec
  21501. ECAKhb[#qDM"aim#h1RcV"jL+0`RFhGPYMlpSmaI4ZRMpLMG,mFC1lEl&i9[q9E[
  21502. j2YN9[Lji0aRa(Jr0q5CpLlp!hpC)H'3D$lIL1raj6GmaBLlja`LVff0'8mI$$rJ
  21503. HBI2lRZPj2%b!ccRmZ5j0rEiC(9aIHMa!M`ZCi,2+(,jVHTS-4q3IDBY'i28d'8l
  21504. (c3lIh0A6&Y-6R&lk3B"q)$e0-cVpH@RX@dDRCm"EH-+L*e$j3rU44Z$Tp!bD`Ap
  21505. (2eB)S0-rrMmk2F9Vd+)IiIm6aVVc%k26dZ3rdC-DJFHJ'A#!IXShD[UTd@R*rib
  21506. HdJM5p8YT+hp@deDMdj*rQRkZ%AJk240,q'GS'ceM)mcSp$BclcN`,MlYidq6d[5
  21507. -D@Fq9[pIm+FdrF)iDT,r*Ie+)r$Uci&[p@['j[GVSil)mr9m(Ih'jZY2U10e)RH
  21508. rJGapNTkPhpS)-qViV"R'3[Jd[`[3ll+%cU(I!Zi6p([qZ)d`Sikr0kbZJY0fVF2
  21509. AGURMaiA!0`L"If9DV+%PI)f2XGXUrT68rGcd!Vq%ecZm[NXe2bY`6jNfa'qifZD
  21510. VXkTjSa3rfDQDkab-r9p9mbC4c5m)hVH0DPi#eI`$rC(AdR-D#8r",S'apMbpS"&
  21511. i2F(IikXF[UT,`9i`SeN1HfplJ,B,L8BB9IbM%Dpk'!Xl,0U"STf%+ifG4VcUUCi
  21512. r4VX9!SMAEKaF&2e9['T$F"T3K!TclHBeD0%Zr&rN+c@pD"4-1Ye$Hc8#6c,UiG2
  21513. Xic@DpKN&Nra,p,*'N!#ZAd2l'EE4IU0JNRq&$QJ%RS+&B#'YTS0db%DB8E#$CYj
  21514. KDZC92PiP#RE)Y"1"2r3UVp6dUP%`bEI6DaU"9pm#RqT2[%,6Rib#)FpYR+6AE@i
  21515. lS@"`PA,SG8K5JYkJ0ff%'39l```M"QIZV3#pP59I$Vd*Z$LpcCIE#$-+pVCKGB+
  21516. 5h1T`DjH#A5i+YN*Br*TTF4@YjTL2Bk*J+kAZJ1QPRN)FG6MDT@"A#0c,TSdeX0Y
  21517. DE'l*+YJD+GlEU@!4Kb2(&Ha+8E#eJ[HF8CEe8,$$&Kh'a2p-lfJ%RV+XTrAF6(p
  21518. 4#+!XIrN2C5Ncb[)1rKemQDB1Sbc5k4&+D33HPGI$-f%1Df+M,-MM6&*TL%DkrMC
  21519. PFC0@PP%@bIZ8AbZI8CCVk$CZ90e8MXf0'@94h3a&2NRAFi12'k!X#NH4dXi0G+[
  21520. UcL'YZKYPNAbZkU'9Gb[C$IEA,FVQHUeXSbc)FahA+XIQZK2+8JZT8!kN)UJ#5YX
  21521. Fc#L,#TKKI)CZ8RN"P5I+iR%M"hVRidY92LqhqG+-XUKm`f$BCAb*`jGd+FYb8CC
  21522. kX&Me-#hH!UrVBKr$@9FFNMUrk3A@)erNm%9GbY)NF##HY(%EhFiAfRaK9PPJB@T
  21523. +G5V,"3jIF&aCF*KTBG5@+Z$cY5SJY3#!Gp!'e91VRUD$1q"T,A0ifI%1F(4KdGA
  21524. SS*IUV49Z26-Hke)q6r&5QIPjJ&#pmHr$5l6UBcc@21UT6P*pY6UTdf1Y8IfifZ'
  21525. D[pVG#VHBUP#GV&9Kjh3A1lci3hp9R3c)rRbZ9[dl)4Fj[-McF3@bVIBbh,KkZ@U
  21526. 6XrKF%GaUi9MIc,9RY4UJ"R)99fSeJ+aTASe2$9+$YF)jT1P-m8+(&hki-UV"KV%
  21527. i-PC$!QT)eVY9!ifZje#9FLhPSRkS'UB9cKC&eh-SKaHSiBV"cS!D$XZQ'1H0KK4
  21528. ZLja@TGebFh&X'[F1)$26&@eA1-C8TkJ4@Z%#8V3pKrUVNHT8V8BD-FfK3M@+cp&
  21529. Lmd@KeC)r649TFFlNqN(Ma'Qq'QhcI&&ZA#*U"A0GN!$cU*mD`r1d5Kmb)XpcHBi
  21530. DDr2FY!c(-Bl--46$(T5FiMQLUf1KUl09X5UaH6BkDiM(@V3U0P6"46&Aq"Lh6cQ
  21531. U"$Lc9#R2Y(N@F,$3B(FS06ML`Xh`m3cUPX-cKBR3&)e,-SbR"`DTe6JZ4d"U[MG
  21532. iV8kh&%kke"PU[&CRC%m$eB5!QS#VdccF*aKQb66!4q(2H2`RUM1e`X@Ji(@RA$8
  21533. TS#EK4M@r2%["Si"RiRq@QUa9qZ349plUl)!k'bCThhNi$X2eDP+@-Ga'*)lKiK*
  21534. 569&608bCc+'MQKD!2cDB#TF'FGXQYq5e)06+F$hiIK4j+[l6Z8bVp,8M$(09&X!
  21535. #-j,F4E&%)P`E@BdMfFl@%mQfKSDM(6$ZjK@A5h#1-1M86Y@Fl["dleSYFkIQEC,
  21536. MX[PUNlGN%9IPDSC@jCR6Xl&UTTUP&@l54#d'd'K9`G1dUM!k)rRCDSj@Xih1Z$5
  21537. DTkUj0Nr0kJc1[!4j+"@TH6a&UhP'Cj!!jl0jXTT[mpNRG'Dbk-amk-GCkKbe`1D
  21538. cXMU$mcFK#Sk8HC+2*iR1,!$1Q@SK6l6jc+c1,-`DbMc"aa2)Pm-6K596K#@iX41
  21539. G`8fGUQ3)#QlK4'FNAf@T+["KNF)+XXMdJ&-lY6LJ&N1d!RMK34jlL!SA$BA2aEp
  21540. De@L&8aG"Jk'ZPJ68%XK[GcGB'fY,TS&`cDE1ic1d1Lpl5kH@"Y45h'XkEMc8')c
  21541. ACl[L-f4@)*GLV#jDcHUNpHN1Rrl2Y$lpI9T$,R(iU*BTV)R,c%j86029"HT#(UF
  21542. ZdJURFP1pQR(UBR@*9ZPcX@,F*jFkA0UeE@Q&-cUCA`Q9UZ8"YEac+m*GQHM(H$T
  21543. ,ADU#@PeUJ1"JUpU!UX9T3KpX1@jEY$ND@aR0,$XiMKE`B1H)5a`ZS3"fbM6#kF)
  21544. )(+*TKBXqkA!+4PQRB#28'G!TZ1JVGVMia0MU1aXFkr$BrpDJ`KQK#[%BV8*'V-U
  21545. SLNHV"LkbHA6kqKmRlFh(VVZpkhr93"EX#H#GSaS9V*6'6(kH#LZ))DlX6(k1DPB
  21546. 4MFdaRCqT@K3XL4BcQ$)Ujp-F2ZdMcGBUDM$,BDb2FRK8e`k,K94)1*0QUeJ!S,e
  21547. *Zdh"K"Z-am-V3[@HhQKeQHN(&kKmUX1RIL3`@M8C6&bTmNL(4rjhaN,6,4iM!Bi
  21548. h&9G+CSNi#HJi[`$h8ENm3VALr2`8GEQ+Ui4++Kk"&4)e16bFKr&3GRN)$hCiq,q
  21549. rU1$`X2pm,X(QS9dAr!klAAGN$JmjlS$BM!h3Hk%JKZG$c2QjG(@6YqEi'#qUj+R
  21550. ,UAX"$m+Yd%!HS0V8#Zj[)rfhB3cmhdI)!i4+EG5G6qC#lXGpq56Z`ldG2[NMG)F
  21551. ,MjrU1Gc[a+Q``hhrl5M3iC2qjk'K`hf1AMBkh2[Bi@+"@J'ISCal84RhT'PF`2Q
  21552. FKp[A"YBik%abJ"ffEC5EQdmE)&jQKXd&*P0YFhlk[3-Ed"qHIpYSb9`*fa``Q6D
  21553. (R40LB"mAJjlFRfThp+,mSTfl5RDr@,*Rc0ia&3mYUGT`'CkMUALiDZ0Gc81'9$a
  21554. 5eBqQIQ9MFp0!mJ0X50(1PdTf[ebbjqk5r@-U[P&9Y219NYd(*(e`6-8hPe39&Gh
  21555. 62*VblSf-T[`,UmlRTr,c9&`%T3G-b9cZVPDU9CcM)2hKb2)BlUbIZkR92SDeQkG
  21556. @`m0L[m2qVM[)lX,$P9"d(eX1qcj!FYMk&bHb3+h#2Jhr&fkSBNSa2C!!5U@1T$V
  21557. SdG4IF,2d!jbjE+Hh9*l05Kj'LF8L0JllM39Y!mli[hBUPECfIDNMb!$r3a[C4QI
  21558. 'G1h*1E4a4m9$94Yfj[DJlKYfjHiH1BK1fA$KLaGGH%(4RVhl0V`8S"iA)EAIT%j
  21559. rC@6&3qG6miB$(Yj"$fq``@X@R%-'ThP)'UPm`kZjJmJpLK#NJ[Fa"VeEhI2GkUU
  21560. 0qD"b!P41[D2kT[kF1UbZ8'Y5EcXT2-Vc,rU5Pm*CJ6rePVV5PhU,V$ae*4DYe*Z
  21561. T0jc8Qar5-rA'hjc9&"lB+9"A8,I8kkNrT9j,YDGHG9+[Gh@$Gh)qk-C*[IE4EZZ
  21562. NfMrD2Th8Uqr[Q`9U$I9@3p3%08QGVDDTXY5Ke-(8JG3VUIfTPp9LY83Y9FY9VBU
  21563. PA[+P$P%h1h8`E9ICU30THmP1[C)fN!"mUIfL*[,!c&pG+M[e8TFYd$2e0Y9Xf!'
  21564. cZA,RVYd[lYQlBPr45md[lpdI)+F%DRrJi+%@8p*L5KkTf[JU2#%E-P(ak2R8E@2
  21565. &Se9hE4J"A4MaP4&hMm#5d1YmmM9"&*)L#[[8ae*l8h[89@TYkN8lYDpVcp3+9q$
  21566. Q9(Qi@QFTA%e6[p4Z+iAAC&3+cpeB+6ah8k#ZNQ!YZ,iVYC0'TRDNYYZTAHP(L@b
  21567. 8I2J#NThDdI8kN!#GfYle6Nr2e)Yd#Yj9)0SKNBVJS+-"4#MBKC(lUSS3qEh""r'
  21568. k'!!#llc`!Nk$V5[qa`0XH&PSXc[ZV,2'Zi[aESKlALLHK,%@M(MQqZ*B0"LTGaH
  21569. %X2NQaVK,S[!riSP`FVABXc8VXAb'aVL9)3K@2!+m4,&EMUH*iZ('TQ3#"PdL&)G
  21570. I8UaeM6ae&JNRNa'mf5E2Q#A6,l6K5XHYMmGD@f'VT'mBUj2"H,+YeCf(jpF5k4G
  21571. 9m-"E%XirHQX%G&"HQ3XhT*pHF8-V-!Gh&1"VJhA0MA(-YYiG1[3dirQQCbiHT2H
  21572. `@P0`"9iVmr$4FlSDqP8IFa-aYhDefiE0U0'E4,SBKN+iBE8l-aC0aQ14L%aM+9B
  21573. cmE50JAl-'`,a[6NP3`LNAfRNk,Q#PcB+,"b5Y0G(@VU2G[rHBe!HLB,4CMcm&A2
  21574. RBqU,fKUEh#QAaD+Y5*499Y6-V&TBM2mdlb8ciCXhj09ZH890KGGk5c$H,2bXMf0
  21575. )'4$4*TJlEP9eq6,dZ$J%`3&a*lrIrTKhJFDBYqM-fhAT**!!kQ#laa*0B%T,+ej
  21576. 0!qJL-"3[jBAN[EUqk4I6mQ$C&b!1C*qImDjT%%Pp)IkMdRAbVTj,Gdr(MF$QGZ3
  21577. 1i+mUcq2$*Ei991)VRE,arUr1(MPNl&bT+*fbk8l*ZX9mq+%YM@k*cje5eaT0PKr
  21578. LMQ&c0pirl,U43qDA0H61Ii!l'Ud9UX!hXTMIU,bNXUd5ecXPJI0[,*P5@98c$pf
  21579. Zfc4Ne()hd*!!fqUE6TZI[(485@$cc@k0Qr[-*LSF@ND&kGa!j!BZZE'NMlYm`bA
  21580. 6eY98MBTb4fG(PBpacAaU,*,1j&A$NLQ*ZYCNkp"04G*GBbr8"8TJVK2FZde&Qpp
  21581. B9JA%C+B(e!d89+QI[EK#lTbaSFbE@6RFbp`LGC,S,NmCT9p,m#SXV$&qh$LX`V1
  21582. ,eq,HbB*9BIR*M`IqFR-9&I5KGHi`+LXV*lGphEU#kkNXpa2NqUmPebV$0Z05J99
  21583. !"IjF+XMeNeX!9pG9Y+l-ZTV@qGIM+D4Ck'-ZATpDPN[qHRL56k"2R&pikj2dld2
  21584. F(8pNV0f"aDmG,ZCK("Yd`&4,`EGN[%6'kkBcEeR,[!12,lAMIaMr$[a6U'(8TS$
  21585. 4!Dc$h9([!`jH+pb#H"hbk%(kk-$r-(AIedkq(k*2KAkppFe)#ElmpjmiDKF"kIc
  21586. bh`A)aja`bGN*YRAlX3lb+E$e'%!lEAdDb3b!P!-[#j!!,Xm!H19H[3'3!2)McfF
  21587. "[2,R63-#`)cbjlCN1dJpei(b3#!$F'6V0T4[b3*dE-er'Z88`&Z+!T!!6eZfST`
  21588. -B'!EY3I`%CN1-8F!5,PAMh*!5[N@Vel',!!SIaV2-RVPhP43[M9GlSd-j9XcjA5
  21589. NAFUhC-ZIlhL[r,PYamTPJXI+CB,E1cV,+Ar,Y[EmVGPbmca94lBm$G*CRQ&GpLY
  21590. 6kr,+HVT$#fENl[(IZ[kQmV+KlV##@BAAM5JBk3iUSh9UAIk@)6ZQYkmp$0e*-Dr
  21591. PkDNK(8-16fqI[Q23&Np)j*p[HQ*`5V+"I+r*pLhEK*IjJB#R#Gbqc41,)pZ2H#*
  21592. a*2mj'9fqd!`FpIMhG$Z`mN&"3+1VTcX%qXJf,ddGfl`d4#Jldr3Xf6cfkHeAk@9
  21593. Akrp+CBI(#d,bXQD@eYk9B1rVNE'Al5!IeJljb`Z+SmQ[AV"@b,Z%kRRViM6H+V0
  21594. [NJUN19-YEmCk$p#*Di)lU25'A01jklmlP245rZjCJ5L$R"6d&0"MQlZXZ%G(GHa
  21595. KA$`fp8`I1IXDL&`[@6+4Zce4Pm$e00dV5b(LKm89![$MLH4UG%R2*PS6Z)'PAEM
  21596. $N!"Ri!l0V*U&'d&kCdEP,1alUTGC$Y9JXabU)V-DUSRKZJKk962#G3R*9b+@r!9
  21597. 0$A)BS"UUjef!j`"8I#QZj4"I&3b"&+4ZS(@-Qp&MQSZANlbPdm[G6JrHFD@r5A*
  21598. M(T!!XYlA5flm*C)cG5@iA-PJPk3A9Lqh!0KiSi"a%e+b1(e(LR1&NLJpH2ZM"U2
  21599. 8km0JPm*@bf#AAQ2@A5q(pa)bZA%hGqE1Z!ApE8MRrS$FV5p[NGb%S1R)bq'`2G2
  21600. 6",cKB#TGQS!(9SMq2`#K6`!!:
  21601.  
  21602.  
  21603. --========================_14526749==_--
  21604. =========================================================================
  21605. Date:         Mon, 29 Aug 1994 08:56:00 EDT
  21606. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21607. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21608. From:         Jay Thomas <jthomas@PLUTO.NJCC.COM>
  21609. Subject:      Re: Eudora-Sorting incoming mail
  21610.  
  21611. Get the commercial version. This is its primary feature and its VERY worthwhile.
  21612.  Just define a filter to take mail coming from or containing something in any he
  21613. ader and transfer it into a mailbox. Its very obvious how to do it.
  21614. =========================================================================
  21615. Date:         Mon, 29 Aug 1994 08:43:19 -0500
  21616. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21617. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21618. From:         Fred Terry <pfterry@LKS.CSI.COM>
  21619. Subject:      Polls close on Wednesday
  21620.  
  21621. Just wanted to remind everyone that Wednesday is the cutoff point for turning
  21622. in the newsgroup creation polls.
  21623.  
  21624. Currently,
  21625.  
  21626. 76 think a newsgroup should be created
  21627. 39 don't think a newsgroup should be created
  21628. 4 don't care
  21629.  
  21630. 82 think the mailing list should be continued with a gateway between it and
  21631. the
  21632.    newsgroup
  21633. 28 don't think the mailing list should continue
  21634. 7 don't care
  21635.  
  21636.  
  21637. Cheers,
  21638.  
  21639. pf
  21640. =========================================================================
  21641. Date:         Mon, 29 Aug 1994 07:56:50 U
  21642. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21643. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21644. From:         Robert Bogar <robert_bogar@QM.CLARIS.COM>
  21645. Subject:      Re: Apple Script Books
  21646.  
  21647.         Reply to:   RE>Apple Script Books
  21648. Recommendation for two books-
  21649.  
  21650. Tao of AppleScript, 2nd Ed. (by Derrick Schnider) if your just getting
  21651. started & The Complete AppleScript Handbook (by Danny Goodman) for a
  21652. reference, would be my two choices.  The Tao, 2nd Ed comes with AppleScript
  21653. 1.1 & offers a chapter on the Scriptable Finder.  I found the Tao very
  21654. readable, and an excellent starter for beginning scripters.  The AppleScript
  21655. handbook is a great reference book, but is a little like a college textbook
  21656. in it's readability.
  21657.  
  21658. Robert Bogar
  21659.  
  21660. --------------------------------------
  21661. =========================================================================
  21662. Date:         Mon, 29 Aug 1994 08:34:07 -0800
  21663. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21664. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21665. From:         "Roy S. Rapoport" <rsr@BERKSYS.COM>
  21666. Subject:      Re: Apple Script Books
  21667.  
  21668. > Are there any books on apple script that people would recommend?
  21669.  
  21670. Well, The Tao of AppleScript, while being mostly fluff, was rather useful
  21671. when I was a bare beginner in AS.  Now I use the AppleScript Language Guide
  21672. (English Dialect), which is sort of the 'official' reference.
  21673.  
  21674. -roy
  21675.  
  21676. Roy S. Rapoport                            rsr@berksys.com
  21677. 510-540-5535 ext. 280                    Fax: 510-540-5630
  21678. Official spokesperson for me
  21679. =========================================================================
  21680. Date:         Mon, 29 Aug 1994 09:44:08 -0700
  21681. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21682. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21683. From:         Mike Shaff <shaff@QUILTY.STANFORD.EDU>
  21684. Subject:      Exit from a handler
  21685.  
  21686. Greetings,
  21687.  
  21688. I am developing my AppleScript 'applications' using HyperCard as the front end.
  21689. I would like to test some condition and if true exit the handler:
  21690.  
  21691. on frob()
  21692.         ...
  21693.         if abort() then
  21694.          exit frob
  21695.         end if
  21696.         ...
  21697. end frob
  21698.  
  21699. Is there some way to accomplish this?  I imagine that I could wrap the entire
  21700. handler in a try form, but this would wreak havoc when additional error
  21701. checking was needed.
  21702.  
  21703. on frob()
  21704.         try
  21705.                 if abort() then
  21706.                         error "Abort condition is true."
  21707.                 on error
  21708.                         ...
  21709.         end try
  21710. end frob
  21711.  
  21712. Anyone?
  21713.  
  21714. Thanks,
  21715.  
  21716. Michael
  21717. =========================================================================
  21718. Date:         Mon, 29 Aug 1994 19:02:20 +0100
  21719. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21720. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21721. From:         David Anguish <David.Anguish@SIC.ADM.EPFL.CH>
  21722. Subject:      Existence of File/Folder
  21723.  
  21724. I've been playing with AppleScripts for a few days now and I haven't yet
  21725. worked out how best to determine if a particular file/folder exists in some
  21726. folder. I use "on error .."  but this messes up use with MacHTTP from which
  21727. I call my scripts, any ideas? With much thanks, David A.
  21728.  
  21729. __________________________________________________________________
  21730. David Anguish SIC/SA, EPFL
  21731. 1015 Lausanne, CH
  21732. Phone: +41(21)693.4581
  21733. (Central European Time)
  21734. ___________________________ Eudora F2.0 on Mac _________________________
  21735. =========================================================================
  21736. Date:         Mon, 29 Aug 1994 09:52:47 -0700
  21737. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21738. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21739. From:         Mike Shaff <shaff@QUILTY.STANFORD.EDU>
  21740. Subject:      A different file existence question
  21741.  
  21742. Greetings,
  21743.  
  21744. A frequently asked question on this list queries:
  21745.  
  21746. How do I check for the existence of a file?
  21747.  
  21748. To which a common answer is:
  21749.  
  21750. try
  21751.     info for thePath
  21752.  
  21753.     code for item exists
  21754. on error
  21755.     code for item does not exist
  21756. end try
  21757.  
  21758. This is great for files, but for folders or in my case a disk.  The 'info for'
  21759. command incurs a tremendous overhead (a folder calculates its size which can
  21760. take a user perceptible time).  I have not found any additions that would check
  21761. an aspect of the folder thereby confirming its existence WITHOUT causing the
  21762. calculation on a folder size.  Anyone?
  21763.  
  21764. Thanks once again!
  21765.  
  21766. Michael
  21767. =========================================================================
  21768. Date:         Mon, 29 Aug 1994 13:20:09 -0400
  21769. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21770. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21771. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  21772. Subject:      Re: A different file existence question
  21773. In-Reply-To:  <no.id> from "Mike Shaff" at Aug 29, 94 09:52:47 am
  21774.  
  21775. --Mike Shaff wrote:
  21776. >
  21777. >Greetings,
  21778. >
  21779. >A frequently asked question on this list queries:
  21780. >
  21781. >How do I check for the existence of a file?
  21782.  
  21783.     The best answer that anyone can give you is to get the Scriptable
  21784. Finder. It handles all of the file stuff you could want from AppleScript
  21785. (well, mostly all ;). It makes checking for the existence of a file or
  21786. folder simplistic.
  21787.  
  21788. -Hades
  21789. =========================================================================
  21790. Date:         Mon, 29 Aug 1994 10:15:18 -0700
  21791. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21792. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21793. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  21794. Subject:      Re: A different file existence question
  21795.  
  21796. >Greetings,
  21797. >
  21798. >A frequently asked question on this list queries:
  21799. >
  21800. >How do I check for the existence of a file?
  21801. >
  21802. >To which a common answer is:
  21803. >
  21804. >try
  21805. >    info for thePath
  21806. >
  21807. >    code for item exists
  21808. >on error
  21809. >    code for item does not exist
  21810. >end try
  21811. >
  21812. >This is great for files, but for folders or in my case a disk.  The 'info for'
  21813. >command incurs a tremendous overhead (a folder calculates its size which can
  21814. >take a user perceptible time).  I have not found any additions that would check
  21815. >an aspect of the folder thereby confirming its existence WITHOUT causing the
  21816. >calculation on a folder size.  Anyone?
  21817.  
  21818. Long term, the solution comes from the Scriptable Finder.  Scriptable
  21819. Finder comes with System 7.5, and is available now for $25 from APDA if you
  21820. don't want System 7.5 (which is available now in floppy but not yet CD ROM
  21821. format).
  21822.  
  21823. tell application "Finder"
  21824.     exists disk "Vashon"
  21825. end tell
  21826.  
  21827. quickly returns true on my system (which has a disk named "Vashon").  Likewise,
  21828.     exists disk "missing"
  21829. (I don't have one of those) returns false.
  21830.  
  21831.    --John
  21832.  
  21833. --
  21834. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  21835. When was the last time you checked out the ceiling tiles in a building you
  21836. were in?
  21837. =========================================================================
  21838. Date:         Mon, 29 Aug 1994 12:40:18 -0700
  21839. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21840. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21841. From:         Todd Main <tmain@FSRAMPO.SPS.MOT.COM>
  21842. Subject:      Re: Apple Script Books
  21843.  
  21844. >Recommendation for two books-
  21845. >
  21846. >Tao of AppleScript, 2nd Ed. (by Derrick Schnider) if your just getting
  21847. >started & The Complete AppleScript Handbook (by Danny Goodman) for a
  21848. >reference, would be my two choices.  The Tao, 2nd Ed comes with AppleScript
  21849. >1.1 & offers a chapter on the Scriptable Finder.
  21850.                                ^^^^^^^^^^^^^^^^^^
  21851. [stuff deleted]
  21852. >Robert Bogar
  21853. >
  21854. Does Tao... come with the Scriptable Finder or just explain it?
  21855. (stupid-user question...)
  21856.  
  21857.  
  21858. Todd Main
  21859. Motorola Dynamic Memory Products
  21860. tmain@fsrampo.sps.mot.com
  21861. (512) 933-6143
  21862. =========================================================================
  21863. Date:         Mon, 29 Aug 1994 19:51:30 +0200
  21864. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21865. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21866. From:         Thomas Baetzler <bath0011@FH-KARLSRUHE.DE>
  21867. Subject:      Re: Existence of File/Folder
  21868. In-Reply-To:  <m0qfAcB-0000H1C@rz03.FH-Karlsruhe.DE> from "David Anguish" at
  21869.               Aug 29, 94 07:02:20 pm
  21870.  
  21871. David Anguish wrote:
  21872. :I've been playing with AppleScripts for a few days now and I haven't yet
  21873. :worked out how best to determine if a particular file/folder exists in some
  21874. :folder. I use "on error .."  but this messes up use with MacHTTP from which
  21875. :I call my scripts, any ideas? With much thanks, David A.
  21876.  
  21877.         Did you try exists() of the Scriptable Finder? This should work fine
  21878. at least for normal files or folders. If you have to check for the existence
  21879. of several files in a folder, you might also read the whole folder's
  21880. contents and then match your names against what's there.
  21881.  
  21882.         If anybody else has better ideas, I'd like to hear about them, too ;-)
  21883.  
  21884.         On a sideline, has anybody an idea of how to check whether a particular
  21885. medium is currently inserted in a drive without bringing up the "Please insert
  21886. volume foobar in any drive" dialog when it's mounted but not inserted?
  21887.  
  21888. :David Anguish SIC/SA, EPFL
  21889. --
  21890. Thomas Baetzler, bath0011@fh-karlsruhe.de, thb@spectre.ka.sub.org
  21891. "If it doesn't work out, you can always kill yourself" - Cynthia Heimel
  21892. =========================================================================
  21893. Date:         Mon, 29 Aug 1994 10:30:35 -0800
  21894. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21895. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21896. From:         "W. J. Proffer" <proffer@SCUBED.SCUBED.COM>
  21897. Subject:      Re: QuickTake software scriptable?
  21898.  
  21899. Buy the PhotoFlash application ---  $200.  Or you can get the developer's kit.
  21900.  
  21901. That's the only way you can do it -- straight from Joh Pugh.
  21902.  
  21903. Bill
  21904.  
  21905. <pre>
  21906. William J. Proffer
  21907. Senior Staff Scientist
  21908. Test Technology Group
  21909. S-Cubed, A Division of Maxwell Labs
  21910. 3398 Carmel Mountain Road
  21911. San Diego, CA  92038-1095
  21912. (619) 453-0060
  21913. (619) 755-0474 (fax)
  21914. proffer@scubed.com
  21915. World Wide Web URL:  http://www.scubed.com:8001/
  21916. </pre>
  21917. =========================================================================
  21918. Date:         Mon, 29 Aug 1994 19:56:49 +0200
  21919. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21920. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21921. From:         Thomas Baetzler <bath0011@FH-KARLSRUHE.DE>
  21922. Subject:      Re: A different file existence question
  21923. In-Reply-To:  <m0qfAix-0000GzC@rz03.FH-Karlsruhe.DE> from "John W. Baxter" at
  21924.               Aug 29, 94 10:15:18 am
  21925.  
  21926. John W. Baxter wrote:
  21927. :tell application "Finder"
  21928. :    exists disk "Vashon"
  21929. :end tell
  21930.  
  21931. :quickly returns true on my system (which has a disk named "Vashon").  Likewise,
  21932. :    exists disk "missing" (I don't have one of those) returns false.
  21933.  
  21934.         Now try inserting a floppy disk. Open its directory, and then eject the
  21935. disk. exists disk "Missing Floppy" returns - "Please insert Missing Floppy in
  21936. any drive". Great for checking in a fully automated script that's supposed to
  21937. run overnight ;-)
  21938.  
  21939.  
  21940. :   --John
  21941.  
  21942. Thomas Baetzler, bath0011@fh-karlsruhe.de, thb@spectre.ka.sub.org
  21943. ---
  21944. This product has been cruelly tested on cute little furry animals.
  21945. =========================================================================
  21946. Date:         Mon, 29 Aug 1994 10:48:10 -0700
  21947. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21948. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21949. From:         Kevin Purcell <kevinpu@ATM.COM>
  21950. Subject:      Re: Changing value in string
  21951.  
  21952. >A newbie question:
  21953. >
  21954. >I'm having problems changing the value in a string. (the vInfo comes from a
  21955. >Pagemaker tab query, if you must know).
  21956. >
  21957. >set AppleScript's text item delimiters to ","
  21958. >set vInfo to "4,0,27,\"  \",3,56,\"  \",3,100,\"  \",3,146,\"  \""
  21959. >set first item of vInfo to 6
  21960. >
  21961. >doesn't seem to change the 4 to a 6.
  21962. >
  21963. >I've tried variations of the above (6 as string etc) to no result.
  21964. >
  21965. >Clues?
  21966.  
  21967.  
  21968. You can't do this (see page 62 first paragraph and example).
  21969.  
  21970. You can change lements in strings. Get the bits you want and concatenate a
  21971. new string together.
  21972.  
  21973. Kevin Purcell, N7WIM / G8UDP      kevinpu@eve.atm.com      206/649-6489
  21974. Attachmate Corp                   xenolith@halcyon.com
  21975. =========================================================================
  21976. Date:         Mon, 29 Aug 1994 11:05:58 -0800
  21977. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21978. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21979. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  21980. Subject:      Re: Are "Mail Enclosures" disks?
  21981.  
  21982. >--> "Mail Enclosures"
  21983. >
  21984.         Mail Enclosures is a "virtual disk" that appears when PowerTalk is
  21985. active on a given computer system - which basically means Sys7Pro and 7.5.
  21986. What you should do to avoid this (and similar disks) is to filter out any
  21987. disk whose "visible is false".
  21988.  
  21989.  
  21990. Leonard
  21991.  
  21992. -----------------------------------------------------------------------------
  21993. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  21994. Director of Advanced Technology         AppleLink:      MACgician
  21995. Aladdin Systems, Inc.                   GEnie:          MACgician
  21996. =========================================================================
  21997. Date:         Mon, 29 Aug 1994 11:06:43 -0800
  21998. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  21999. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22000. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  22001. Subject:      Re[2]: Receiving raw Apple Events in scripts
  22002.  
  22003. >Syntax should prevent the user from ever having to write <<Event mumble>>
  22004. >in a script--they claim this is a high-level language!  I wish AS had a
  22005. >proper (or even a crude) syntactic extension facility--it would be really
  22006. >nice if, when one wanted a case statement, one could just WRITE it by
  22007. >extending the syntax.  (A good compiler and a well-written syntactic
  22008. >extension and this approach adds NO overhead to the resulting code.)  I got
  22009. >really spoiled by writing in Scheme, I guess.  <grin>
  22010. >
  22011.         I had LONG/NUMEROUS discussions with the AS team about this during
  22012. the  development/design of AS, as there were a number of areas where I felt
  22013. that the AS language could use extending from a 3rd party (case was one,
  22014. "when" construct for data flow, etc.) but that was just too tough a problem
  22015. for them to tackle.
  22016.  
  22017.  
  22018. Leonard
  22019.  
  22020. -----------------------------------------------------------------------------
  22021. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  22022. Director of Advanced Technology         AppleLink:      MACgician
  22023. Aladdin Systems, Inc.                   GEnie:          MACgician
  22024. =========================================================================
  22025. Date:         Mon, 29 Aug 1994 14:17:16 -0400
  22026. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22027. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22028. From:         John Schettino <js12@GTE.COM>
  22029. Subject:      Re: A different file existence question
  22030.  
  22031. >John W. Baxter wrote:
  22032. >:tell application "Finder"
  22033. >:    exists disk "Vashon"
  22034. >:end tell
  22035. >
  22036. >:quickly returns true on my system (which has a disk named "Vashon").
  22037. >Likewise,
  22038. >:    exists disk "missing" (I don't have one of those) returns false.
  22039. >
  22040. >        Now try inserting a floppy disk. Open its directory, and then eject the
  22041. >disk. exists disk "Missing Floppy" returns - "Please insert Missing Floppy in
  22042. >any drive". Great for checking in a fully automated script that's supposed to
  22043. >run overnight ;-)
  22044.  
  22045. He're a scriptable finder version that's ejected floppy safe (TM)
  22046.  
  22047. -- test for existance of a disk (Even works with ejected floppies!)
  22048.  
  22049. -- get all the disk names
  22050. local diskNames
  22051. tell application "Finder"
  22052.         set diskNames to name of disks
  22053. end tell
  22054.  
  22055. diskNames contains "Project" -- true on my system
  22056. diskNames contains "Never" -- false on my system
  22057.  
  22058. - john
  22059.  
  22060. -----------------------------------------
  22061. js12@gte.com             GTE Laboratories
  22062. John Schettino                Waltham, MA
  22063. =========================================================================
  22064. Date:         Mon, 29 Aug 1994 13:59:56 -0500
  22065. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22066. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22067. From:         Fred Terry <pfterry@LKS.CSI.COM>
  22068. Subject:      Re: Apple Script Books
  22069. In-Reply-To:  Your message of "Mon, 29 Aug 94 12:40:18 PDT"
  22070.  
  22071. Todd,
  22072.  
  22073. >>Tao of AppleScript, 2nd Ed. (by Derrick Schnider) if your just getting
  22074. >>started & The Complete AppleScript Handbook (by Danny Goodman) for a
  22075. >>reference, would be my two choices.  The Tao, 2nd Ed comes with AppleScript
  22076. >>1.1 & offers a chapter on the Scriptable Finder.
  22077. >                               ^^^^^^^^^^^^^^^^^^
  22078. >[stuff deleted]
  22079. >>Robert Bogar
  22080. >>
  22081. >Does Tao... come with the Scriptable Finder or just explain it?
  22082. >(stupid-user question...)
  22083.  
  22084. Just asked Derrick about this earlier (and updated the faq). It does _not_
  22085. have the Scriptable Finder--Apple wouldn't let them distribute it.
  22086.  
  22087. pf
  22088. =========================================================================
  22089. Date:         Mon, 29 Aug 1994 15:21:55 -0400
  22090. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22091. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22092. From:         Denis Simard <simardde@ERE.UMONTREAL.CA>
  22093. Subject:      Renaming file?
  22094. In-Reply-To:  <199408291901.AA24347@condor.CC.UMontreal.CA>
  22095.  
  22096. I know this is probably a stupid question for people who have written
  22097. applescript for more than one week, but I cannot find in the poor
  22098. documentation I have the way to rename a file. Anyone can help me?
  22099.  
  22100. TIA!
  22101.  
  22102.  
  22103. DENIS SIMARD                    |     e-mail:   simardde@ere.umontreal.ca
  22104.                                 |     maison:   514-271-4136
  22105. Etudes cinematographiques       |     travail:  514-343-6111 (#7858)
  22106. Universite de Montreal          |     fax:      514-343-2393
  22107. =========================================================================
  22108. Date:         Mon, 29 Aug 1994 05:25:39 -0600
  22109. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22110. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22111. From:         "Andy Cemelli [remote]" <ANDYC@WORDPERFECT.COM>
  22112. Subject:      Are "Mail Enclosures" disks? -Reply
  22113.  
  22114. tell application "Finder"
  22115. #name of disks
  22116. end tell
  22117.  
  22118. will reply all physical disks...
  22119.  
  22120. >>> Mike Shaff <shaff@QUILTY.STANFORD.EDU> - 8/28/94 11:46 PM >>>
  22121. My application is trying to make a reasonable first guess as to a
  22122. back-up volume.  There exists a set of known volumes and the
  22123. inevitable rest.  A third volume will most often be a volume to which
  22124. the user will back-up their project files.
  22125.  
  22126. I was surprised when I experimented with
  22127.  
  22128. set volumesOnline to list disks item 2 of volumesOnline
  22129.  
  22130. --> "Mail Enclosures"
  22131.  
  22132. I am developing on a machine with 7 pro.  The studio scheduled to use
  22133. this is currently using system 7.  Presuming our luck with obtaining
  22134. 7.5 does not get better, they will still be running 7 through-out the
  22135. coming year.
  22136. =========================================================================
  22137. Date:         Mon, 29 Aug 1994 13:02:19 -0800
  22138. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22139. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22140. From:         "Roy S. Rapoport" <rsr@BERKSYS.COM>
  22141. Subject:      Re: Renaming file?
  22142.  
  22143. Dennis said:
  22144. > I know this is probably a stupid question for people who have
  22145. > written applescript for more than one week, but I cannot find in the
  22146. > poor documentation I have the way to rename a file. Anyone can help me?
  22147.  
  22148. There are no stupid questions -- just stupid people.
  22149.  
  22150. Actually, I don't believe that the standard AS with its Scripting Additions
  22151. provides you with a way of doing that.  I can think of two things you could
  22152. do off the bat:
  22153.  
  22154. A) Get Jon's Commands -- they have renameFile; (and they're free)
  22155. B) Get the Scriptable Finder (it's cooler, but it's more expensive ($25))
  22156.  
  22157. -roy
  22158. =========================================================================
  22159. Date:         Mon, 29 Aug 1994 15:16:51 -0500
  22160. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22161. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22162. From:         K J Fox <kjfox@MKE.AB.COM>
  22163. Subject:      JABRA Power Dialer
  22164.  
  22165. Hi,
  22166. I've recently acquired the use of a Power Mac 7100 with Geoport adapter and
  22167. JABRA Earphone.  Does anyone have experience scripting the JABRA Power
  22168. Dialer software.  Specifically, I can write a script to dial a number but
  22169. when the other end answers, I'd like to have the Mac speak then hangup.  Is
  22170. anything like this possible??  I have PlainTalk 1.3 installed too.  In this
  22171. way, I can monitor e-mail when I'm away, and leave messages on my home
  22172. answering machine when important e-mail arrives at work.
  22173.  
  22174. Thanks,
  22175.  
  22176. ________________________________________________________________________
  22177. Kenneth J. Fox         |     E-mail:  kjfox@mke.ab.com (pref)
  22178. Allen-Bradley Company  |      Phone:  414-382-3287 (V) 414-382-2742 (F)
  22179. Rockwell Int'l         |      Pager:  414-256-9702
  22180. Milwaukee, WI          |  Applelink:  FOX.K
  22181. =========================================================================
  22182. Date:         Mon, 29 Aug 1994 16:23:49 -0400
  22183. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22184. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22185. From:         "Klaus P. Fechner" <klaus@SPARKY.RAD.MED.UMICH.EDU>
  22186. Subject:      Re: Polls close on Wednesday
  22187.  
  22188. >Currently,
  22189. >
  22190. >76 think a newsgroup should be created
  22191. >39 don't think a newsgroup should be created
  22192. >4 don't care
  22193. >
  22194. >82 think the mailing list should be continued with a gateway between it and
  22195. >the
  22196. >   newsgroup
  22197. >28 don't think the mailing list should continue
  22198. >7 don't care
  22199.  
  22200. Well, it looks like we're going to get a newsgroup (too bad ;-)
  22201.  
  22202. Could we make sure that is gets archived somewhere so that we can refer to
  22203. postings that expired from the news servers?
  22204.  
  22205. Thanks, Klaus
  22206.  
  22207. ------------------------------------------------------------------------
  22208. Klaus P. Fechner<klaus@sparky.rad.med.umich.edu> VAMC Palo Alto, CA, USA
  22209. =========================================================================
  22210. Date:         Mon, 29 Aug 1994 15:33:44 -0500
  22211. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22212. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22213. From:         Fred Terry <pfterry@LKS.CSI.COM>
  22214. Subject:      Re: Polls close on Wednesday
  22215. In-Reply-To:  Your message of "Mon, 29 Aug 94 16:23:49 EDT"
  22216.  
  22217. Klaus comments.....
  22218. [poll count snipped]
  22219.  
  22220. >Well, it looks like we're going to get a newsgroup (too bad ;-)
  22221. >
  22222. >Could we make sure that is gets archived somewhere so that we can refer to
  22223. >postings that expired from the news servers?
  22224.  
  22225. Yes, that's one of the goals. I'll do everything I can to provide options that
  22226. everyone can live with.....will almost everyone.
  22227.  
  22228. pf
  22229. =========================================================================
  22230. Date:         Mon, 29 Aug 1994 16:42:20 -0400
  22231. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22232. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22233. From:         "Klaus P. Fechner" <klaus@SPARKY.RAD.MED.UMICH.EDU>
  22234. Subject:      Re: Polls close on Wednesday
  22235.  
  22236. >Yes, that's one of the goals. I'll do everything I can to provide options that
  22237. >everyone can live with.....will almost everyone.
  22238.  
  22239. Yes, I know you are doing it already! Thanks!
  22240.  
  22241. Klaus
  22242.  
  22243. ------------------------------------------------------------------------
  22244. Klaus P. Fechner<klaus@sparky.rad.med.umich.edu> VAMC Palo Alto, CA, USA
  22245. =========================================================================
  22246. Date:         Mon, 29 Aug 1994 18:02:39 -0500
  22247. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22248. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22249. From:         "Dean J. Spearman" <Dean_Spearman@MBNET.MB.CA>
  22250. Subject:      FileMaker whose clause
  22251.  
  22252.         Anyone scripting filemaker will be interested to know that 2.1v3
  22253. (updater at your favorite info-mac mirror)appears to have a vastly improved
  22254. implimentation of the "whose" clause.  I assume it now uses filemakers
  22255. index. At least My informal test shows that it works at least as fast as my
  22256. workaround.
  22257. =========================================================================
  22258. Date:         Mon, 29 Aug 1994 19:09:37 -0400
  22259. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22260. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22261. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  22262. Subject:      Re: Polls close on Wednesday
  22263. In-Reply-To:  <no.id> from "Klaus P. Fechner" at Aug 29, 94 04:23:49 pm
  22264.  
  22265. --Klaus P. Fechner wrote:
  22266. >
  22267. >Well, it looks like we're going to get a newsgroup (too bad ;-)
  22268.  
  22269.     Don't be too sure. This subject hasn't even been broached on
  22270. comp.sys.mac.databases, yet. We have no idea what the net even thinks
  22271. about this. When and if a comp.sys.mac.databases.filemaker does make it
  22272. to a vote a favorable poll on this list doesn't mean it will pass a
  22273. UseNet CFV.
  22274.  
  22275. -Hades (news.groups regular from way back, and the RFD/CFV organizer for
  22276. comp.sys.mac.databases)
  22277. =========================================================================
  22278. Date:         Mon, 29 Aug 1994 16:32:03 -0700
  22279. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22280. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22281. From:         Derrick Schneider <derrick@NETCOM.COM>
  22282. Subject:      Re: Apple Script Books
  22283. In-Reply-To:  <199408291750.KAA29854@netcom16.netcom.com>
  22284.  
  22285. On Mon, 29 Aug 1994, Todd Main wrote:
  22286.  
  22287. > Does Tao... come with the Scriptable Finder or just explain it?
  22288. > (stupid-user question...)
  22289.  
  22290. Apple wouldn't allow us to distribute the scriptable Finder (urgh). So we
  22291. have a chapter which introduces how to use it, work with files, some
  22292. simple examples, etc.
  22293.  
  22294. Derrick
  22295. =========================================================================
  22296. Date:         Mon, 29 Aug 1994 16:37:42 PDT
  22297. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22298. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22299. From:         Lawrence Wood <lawrencw@MICROSOFT.COM>
  22300. Subject:      Re: Polls close on Wednesday
  22301.  
  22302. Indeed I would like a newsgroup created and a gateway between the
  22303. mailing list and the newsgroup.  If a newsgroup is created then this
  22304. will help spread the AppleScript word (so to speak).  Given that
  22305. everyone with system 7.5 will have applscript it would be good to
  22306. provide a place to go for people to get answers.  chow.
  22307.  
  22308. lw
  22309.  
  22310. ----------
  22311. From: Fred Terry  <pfterry@LKS.CSI.COM>
  22312. To: Multiple recipients of list MACSCRPT
  22313. <netmail!MACSCRPT%DARTCMS1.BITNET@uga.cc.uga.edu>
  22314. Subject: Polls close on Wednesday
  22315. Date:  Aug 29, 94 8:43AM
  22316.  
  22317. Just wanted to remind everyone that Wednesday is the cutoff point for turning
  22318. in the newsgroup creation polls.
  22319.  
  22320. Currently,
  22321.  
  22322. 76 think a newsgroup should be created
  22323. 39 don't think a newsgroup should be created
  22324. 4 don't care
  22325.  
  22326. 82 think the mailing list should be continued with a gateway between it and
  22327. the
  22328.    newsgroup
  22329. 28 don't think the mailing list should continue
  22330. 7 don't care
  22331.  
  22332.  
  22333. Cheers,
  22334.  
  22335. pf
  22336. =========================================================================
  22337. Date:         Mon, 29 Aug 1994 19:21:49 PDT
  22338. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22339. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22340. From:         Joe Scripter <MikeL@EWORLD.COM>
  22341. Subject:      Numbers Only
  22342.  
  22343. How do I check that an input only contains numbers? I don't want people to
  22344. enter letters.
  22345.  
  22346. Thanks,
  22347.  
  22348. -MJL
  22349. =========================================================================
  22350. Date:         Mon, 29 Aug 1994 20:05:39 -0800
  22351. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22352. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22353. From:         Steve Michel <michel@NETCOM.COM>
  22354. Subject:      Re: FileMaker whose clause
  22355.  
  22356. >        Anyone scripting filemaker will be interested to know that 2.1v3
  22357. >(updater at your favorite info-mac mirror)appears to have a vastly improved
  22358. >implimentation of the "whose" clause.  I assume it now uses filemakers
  22359. >index. At least My informal test shows that it works at least as fast as my
  22360. >workaround.
  22361.  
  22362. It looks like you're right -- though finding from a script still doesn't
  22363. seem to be _quite_ as fast as finding in FileMaker, it is a vast
  22364. improvement, and will make scripting FileMaker Pro a lot easier. Now, back
  22365. to work rewriting all those scripts...
  22366. =========================================================================
  22367. Date:         Mon, 29 Aug 1994 21:34:54 -0800
  22368. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22369. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22370. From:         Erik Smith <ersmith@UCSD.EDU>
  22371. Subject:      Re: How to quit one script and launch another?
  22372.  
  22373. >I want script application A to launch script application B and then
  22374. >completely quit.  Using combinations of launch and run, the best I can do
  22375. >is call B as a subroutine.  I want to do this so that script A can call
  22376. >script B to update A from a file server and then re-launch A.  In the DOS
  22377. >batch file world you would use CALL.
  22378.  
  22379. I'm not sure what the right answer is but I decided that rather than trying
  22380. to chain scripts for the task of mutually updating, a better approach is to
  22381. use script libraries.  Just put the major code into libraries, which can be
  22382. easily checked and updated without having to worry about whether the
  22383. library is open.
  22384.  
  22385. Thanks for the help!
  22386.  
  22387. -Erik
  22388. =========================================================================
  22389. Date:         Mon, 29 Aug 1994 18:42:30 -1000
  22390. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22391. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22392. From:         Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
  22393. Subject:      Eudora 1.5
  22394.  
  22395. Hi,
  22396.   Has anyone out there played with Eudora 1.5-(whateveritis) yet?  I've been
  22397. messing with it and I really don't see much difference between it and
  22398. 1.4.3.  A lot of the commands still don't work yet.
  22399.  
  22400. I was hoping that 1.5's command library would be a lot more "fleshed out"
  22401. than 1.4.3's.  I guess I shouldn't have got my hopes up.
  22402.  
  22403. -peter
  22404. =========================================================================
  22405. Date:         Mon, 29 Aug 1994 21:38:37 -0800
  22406. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22407. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22408. From:         Erik Smith <ersmith@UCSD.EDU>
  22409. Subject:      Path of running script file?
  22410.  
  22411. How do I get the path (or file reference) of the currently executing script
  22412. file ?  I'm hoping the answer will work for script files as well as script
  22413. applications.  Seems like you should be able to get it by using some
  22414. expression involving "me".
  22415.  
  22416. -Erik
  22417. =========================================================================
  22418. Date:         Tue, 30 Aug 1994 06:49:12 +0100
  22419. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22420. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22421. From:         Marco Strehler <strehler@FVMED.UNIZH.CH>
  22422. Subject:      Re: A different file existence question
  22423.  
  22424. >John W. Baxter wrote:
  22425. >:tell application "Finder"
  22426. >:    exists disk "Vashon"
  22427. >:end tell
  22428. >
  22429. >:quickly returns true on my system (which has a disk named "Vashon"). Likewise,
  22430. >:    exists disk "missing" (I don't have one of those) returns false.
  22431. >
  22432. >        Now try inserting a floppy disk. Open its directory, and then eject the
  22433. >disk. exists disk "Missing Floppy" returns - "Please insert Missing Floppy in
  22434. >any drive". Great for checking in a fully automated script that's supposed to
  22435. >run overnight ;-)
  22436. >
  22437.  
  22438. Try this:
  22439.  
  22440. tell application "Finder"
  22441.         if (exists disk "MyFloppy") then
  22442.                 if (ejectable of disk "MyFloppy") then
  22443.                         display dialog "Floppy exists and is online"
  22444.                 else
  22445.                         display dialog "Floppy exists, but it is offline"
  22446.                 end if
  22447.         else
  22448.                 display dialog "No Floppy with this name!"
  22449.         end if
  22450. end tell
  22451.  
  22452. -- Marco
  22453.  
  22454.  
  22455. ----------------------------------------------------------------
  22456.  Marco Strehler, Im Dreispitz 21, 8152 Glattbrugg (Switzerland)
  22457.  VOICE: ++41 (0)1 810 27 03   INTERNET: strehler@fvmed.unizh.ch
  22458. ----------------------------------------------------------------
  22459. =========================================================================
  22460. Date:         Mon, 29 Aug 1994 21:59:21 -0800
  22461. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22462. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22463. From:         "Roy S. Rapoport" <rsr@BERKSYS.COM>
  22464. Subject:      Re: Path of running script file?
  22465.  
  22466. > How do I get the path (or file reference) of the currently
  22467. > executing script file ?  I'm hoping the answer will work for script
  22468. > files as well as script applications.  Seems like you should be able
  22469. > to get it by using some expression involving "me".
  22470.  
  22471. Yes, it really is that simple.
  22472.  
  22473. path to me
  22474.  
  22475. -roy
  22476.  
  22477. Roy S. Rapoport                           rsr@berksys.com
  22478. 510-540-5535 ext. 280                   Fax: 510-540-5630
  22479. I speak for the Pope, the President of the United States,
  22480. and  all sentient  beings everywhere, other than those at
  22481. Berkeley Systems Incorporated.
  22482. =========================================================================
  22483. Date:         Mon, 29 Aug 1994 21:54:12 PDT
  22484. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22485. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22486. From:         Brad Schrick <brad@BATNET.COM>
  22487. Subject:      Re: Eudora 1.5
  22488.  
  22489. >Hi,
  22490. >  Has anyone out there played with Eudora 1.5-(whateveritis) yet?  I've been
  22491. >messing with it and I really don't see much difference between it and
  22492. >1.4.3.  A lot of the commands still don't work yet.
  22493.  
  22494. Yeah.  It works well by hand, and it breaks my 1.4.3 scripts.  More
  22495. noodling around, I suppose, unless I'm just doing something stupid. -- Brad
  22496.  
  22497.  ___________________________________________________________________________
  22498.  Brad Schrick                         or try
  22499.  Engineering Software Concepts, Inc.    Embry-Riddle Aeronautical University
  22500.  236 Hamilton Avenue / PO Box 66        600 S Clyde Morris Blvd
  22501.  Palo Alto, California 94301            Daytona Beach, FL 32114
  22502.  (415) 325 4321 (messages)              (904) 226 6200
  22503.  brad@ape.com                           schrickb@db.erau.edu
  22504.  esc@isl.stanford.edu                   http://macwww.db.erau.edu/
  22505.  ---------------------------------------------------------------------------
  22506. =========================================================================
  22507. Date:         Mon, 29 Aug 1994 18:57:11 -1000
  22508. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22509. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22510. From:         Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
  22511. Subject:      Re: Path of running script file?
  22512. In-Reply-To:  <9408300445.AA11003@uhunix.uhcc.Hawaii.Edu>
  22513.  
  22514. On Mon, 29 Aug 1994, Erik Smith wrote:
  22515.  
  22516. > How do I get the path (or file reference) of the currently executing script
  22517. > file ?  I'm hoping the answer will work for script files as well as script
  22518. > applications.  Seems like you should be able to get it by using some
  22519. > expression involving "me".
  22520.  
  22521. Unfortunately things work differently with script files than with
  22522. applications.  For AppleScript applications just use:
  22523.  
  22524. path to current application
  22525.    OR
  22526. path to frontmost application
  22527.    OR
  22528. path to me
  22529.  
  22530. These seem to be equivalent.
  22531.  
  22532. The bad news is that for normal scripts, I don't think it's possible to get
  22533. the name.   Can anyone prove me wrong?  Please do if you can, because I
  22534. want to know too.
  22535.  
  22536. -peter
  22537. =========================================================================
  22538. Date:         Tue, 30 Aug 1994 17:09:00 +1200
  22539. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22540. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22541. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  22542.               NZ" <LDO@WAIKATO.AC.NZ>
  22543. Subject:      Re: A different file existence question
  22544.  
  22545. Marco Strehler <strehler@FVMED.UNIZH.CH> writes:
  22546.  
  22547. >tell application "Finder"
  22548. >        if (exists disk "MyFloppy") then
  22549. >                if (ejectable of disk "MyFloppy") then
  22550. >                        display dialog "Floppy exists and is online"
  22551. >                else
  22552. >                        display dialog "Floppy exists, but it is offline"
  22553. >                end if
  22554. >        else
  22555. >                display dialog "No Floppy with this name!"
  22556. >        end if
  22557. >end tell
  22558.  
  22559. I don't like this. I know it works, because I've discovered myself that the
  22560. "ejectable" property of an ejectable volume is false if the volume is
  22561. actually ejected. But I do wish there were a separate "online" or "offline"
  22562. or "ejected" property or something, that you could test. I see the "ejectable"
  22563. behaviour as a bug/misfeature that should be fixed.
  22564.  
  22565. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  22566. Info & Tech Services Division              fax: +64-7-838-4066
  22567. University of Waikato            electric mail: ldo@waikato.ac.nz
  22568. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  22569. =========================================================================
  22570. Date:         Mon, 29 Aug 1994 23:19:06 -0700
  22571. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22572. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22573. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  22574. Subject:      Re: Numbers Only
  22575.  
  22576. >How do I check that an input only contains numbers? I don't want people to
  22577. >enter letters.
  22578.  
  22579. Here's a skeleton for one way (there are others).  This uses only the basic
  22580. display dialog Scripting Addition, nothing fancy.  I don't know how good a
  22581. job it does of rejecting EVERY non-digit...it catches the ones I've tried.
  22582.  
  22583. set smartUser to false
  22584. repeat until smartUser
  22585.     display dialog "Enter a number:" default answer ""
  22586.     set nString to text returned of result
  22587.     try
  22588.         set n to nString as number
  22589.         set smartUser to true
  22590.     on error
  22591.         display dialog "I said NUMBER!"
  22592.     end try
  22593. end repeat
  22594. n
  22595.  
  22596. --
  22597. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  22598. When was the last time you checked out the ceiling tiles in a building you
  22599. were in?
  22600. =========================================================================
  22601. Date:         Tue, 30 Aug 1994 00:14:49 -0700
  22602. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22603. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22604. From:         Scott Trotter <strotter@NETCOM.COM>
  22605. Subject:      Re: Scripting PageMaker
  22606.  
  22607. Jeff Boulter writes:
  22608.  
  22609. >Could some kind soul with the Script Guide look up how do do the following:
  22610. >
  22611. >Select All of the text in the story selected with the arrow tool
  22612. >copy the text the clipboard
  22613.  
  22614. textedit  -- positions insertion pt when text block is selected w/ pointer
  22615. selectall -- selects all text in story if insertion point is in text
  22616. copy      -- copies selected text to clipboard
  22617.  
  22618. >get the name of the frontmost document
  22619.  
  22620. getpubname -- get name of the active publication, including full path
  22621.  
  22622. Disclaimer: I haven't tried this, just looked it up. Good luck!
  22623.  
  22624. --
  22625. ======================================================================
  22626. Scott Trotter          Desktop Strategies       Beaverton, Oregon, USA
  22627. email: strotter@netcom.com    fax: 503.641.2983    voice: 503.641.2831
  22628. =========================================================================
  22629. Date:         Tue, 30 Aug 1994 09:45:32 -0700
  22630. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22631. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22632. From:         Roel Vertegaal <R.Vertegaal@BSK.UTWENTE.NL>
  22633. Subject:      Eudora Announcer 1.0 notes
  22634.  
  22635. Someone wrote to me:
  22636.  
  22637. >Thanks for this submission! Before I subject my Mac to yet another
  22638. >background app, and also for educational purposes, I'd like to take a look
  22639.  
  22640. It's not a background app, by the way...
  22641.  
  22642. >at the scipt(s) within that app.
  22643. >
  22644. >When I try to open it in ScriptWizard (or Script Editor) it asks me "Where
  22645. >is Mail" with a file dialog, and I don't know what it wants. Any hint?
  22646.  
  22647. I would like to advice all of you out there that it might be necessary for
  22648. you when opening the script with a script editor to locate your copy of the
  22649. Eudora app. The script editor will however ask to locate your copy of
  22650. "Mail". This is since I tend to give my software somewhat more meaningful
  22651. names then Eudora or Nuntius....
  22652.  
  22653. There should however be none of these problems running the script, though
  22654. I'm not positive about that, of course, since I'm new at Applescript too.
  22655. If you do experience communication problems, please try out the above
  22656. trick.
  22657.  
  22658. Enjoy,
  22659.  
  22660. Roel
  22661.  
  22662.  
  22663.         +----------------------------------------------------------+
  22664.         |               Department of Ergonomics                   |
  22665.         |                 University of Twente                     |
  22666.         |            P.O. Box 217, 7500 AE Enschede                |
  22667.         |                   The Netherlands                        |
  22668.         |                phone: +31 53 89 33 24                    |
  22669.         |                fax:   +31 53 35 66 95                    |
  22670.         +----------------------------------------------------------+
  22671. =========================================================================
  22672. Date:         Tue, 30 Aug 1994 14:34:58 +0000
  22673. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22674. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22675. From:         Robert Holton <rholton@CSD.ABDN.AC.UK>
  22676. Subject:      ScriptServer
  22677.  
  22678. Hi,
  22679.  
  22680. I'm looking at ScriptServer to see if I can hack up a mode in Alpha for
  22681. AppleScrpt, but I've fallen at the first hurdle! I can't even write an
  22682. AppleScript program to compile or decompile a script. Any hints/example
  22683. code would be gratefully received; if and when I get an Alpha AppleScript
  22684. mode up and running I'll make it readily available (unless you know of
  22685. anyone else who has done this...) (hell, if it works I'll even pay my
  22686. shareware feel for ScriptServer :-).
  22687.  
  22688. Cheers,
  22689.  
  22690.         Rob
  22691. =========================================================================
  22692. Date:         Tue, 30 Aug 1994 16:38:09 +0200
  22693. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22694. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22695. From:         Thomas Baetzler <bath0011@FH-KARLSRUHE.DE>
  22696. Subject:      Re: A different file existence question
  22697. In-Reply-To:  <m0qfLBt-0000GzC@rz03.FH-Karlsruhe.DE> from "Marco Strehler" at
  22698.               Aug 30, 94 06:49:12 am
  22699.  
  22700. Marco Strehler wrote:
  22701.  
  22702. :Try this:
  22703.  
  22704. :tell application "Finder"
  22705. :        if (exists disk "MyFloppy") then
  22706. :                if (ejectable of disk "MyFloppy") then
  22707. [...]
  22708.  
  22709.         Thanks a lot, this is exactly what I have been looking for.
  22710. The only thing that confuses me is the description of the "ejectable"
  22711. attribute in the Language Guide. I read that first and then assumed it
  22712. would declare whether a disk can be physically ejected, so I never
  22713. tried to use it to solve my problem... Oh well, one can't expect that
  22714. RTFM solves all problems ;-)
  22715.  
  22716. :-- Marco
  22717.  
  22718. Thomas Baetzler, bath0011@fh-karlsruhe.de, thb@spectre.ka.sub.org
  22719. ---
  22720. This product has been cruelly tested on cute little furry animals.
  22721. =========================================================================
  22722. Date:         Tue, 30 Aug 1994 11:14:02 EDT
  22723. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22724. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22725. From:         Danny Goodman <DGoodman@AOL.COM>
  22726. Subject:      Re: Exit from a handler
  22727.  
  22728. >I would like to test some condition and if true exit the handler:
  22729. >
  22730. >on frob()
  22731. >        ...
  22732. >        if abort() then
  22733. >         exit frob
  22734. >        end if
  22735. >        ...
  22736. >end frob
  22737.  
  22738. Instead of "exit frob" use the following statement:
  22739.         error number -128
  22740.  
  22741. Kinda ugly, but this is the same as someone clicking a Cancel button in a
  22742. dialog, which also stops execution.
  22743.  
  22744. Danny Goodman
  22745. =========================================================================
  22746. Date:         Tue, 30 Aug 1994 11:23:52 EDT
  22747. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22748. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22749. From:         Danny Goodman <DGoodman@AOL.COM>
  22750. Subject:      Re: Changing value in string
  22751.  
  22752. >set AppleScript's text item delimiters to ","
  22753. >set vInfo to "4,0,27,\"  \",3,56,\"  \",3,100,\"  \",3,146,\"  \""
  22754. >set first item of vInfo to 6
  22755.  
  22756. There are a few problems with this script fragment.  First of all, the only
  22757. time you can set items are when they are in AppleScript lists {}.  If you can
  22758. make your vInfo into an AppleScript list (I'm not sure where you're getting
  22759. the data--but if you're hardwiring it, you can say: set vInfo to {4,0,27,"
  22760. ",3,56," ",3, 100," ",3,146," "} ).  In this case, you don't have to adjust
  22761. the text item delimiters property of AppleScript to get or set individual
  22762. items of the list.
  22763.  
  22764. Danny Goodman
  22765. =========================================================================
  22766. Date:         Tue, 30 Aug 1994 12:52:48 -0400
  22767. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22768. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22769. From:         =?iso-8859-1?Q?Andr=E9?= Hermelink <andreh@KNOWARE.NL>
  22770. Subject:      Re: Apple Script Books
  22771.  
  22772. Hi Robert,
  22773. You don't probably don't know who I am....
  22774. I visited (together with Peter Wagemans from Claris Belgium) the Claris CTU
  22775. this year. We went together to the BMUG meeting in Berkely.
  22776. A few weeks after my visit to the States I received my internet account, so
  22777. here I am, also a member of the 'mac scripting systems'.
  22778. I already bought the two books you mentioned, only I wonder, the second
  22779. edition of the TAO book, is that one the same as the first edition?
  22780. Like to hear from you, bye, Andre. (Ingram Micro Holland)
  22781.  
  22782. Andre Hermelink         andreh@knoware.nl
  22783. Rijnstraat 4-23         Ingram Micro Holland:
  22784. 1972 VG IJmuiden        AppleLink: HSUP.INGRAM or
  22785. HOL0278@applelink.apple.com
  22786. xx-31-2550-37027
  22787. =========================================================================
  22788. Date:         Tue, 30 Aug 1994 10:28:44 U
  22789. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22790. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22791. From:         Brendan McCarthy <brendan_mccarthy@QM.CLARIS.COM>
  22792. Subject:      Re: FWD>>FileMaker whose cla
  22793.  
  22794. Mail*Link(r) SMTP               RE>FWD>>FileMaker whose clause
  22795. "Dean J. Spearman" <Dean_Spearman@MBNET.MB.CA> writes:
  22796.  
  22797. >        Anyone scripting filemaker will be interested to know that 2.1v3
  22798. >(updater at your favorite info-mac mirror)appears to have a vastly improved
  22799. >implimentation of the "whose" clause.  I assume it now uses filemakers
  22800. >index. At least My informal test shows that it works at least as fast as my
  22801. >workaround.
  22802.  
  22803. You know what they say about assumptions...
  22804. Actually, FileMaker's index has _always_ been used when resolving "whoses."
  22805. Why else would an application support "whose" in addition to a simple test?
  22806.  
  22807. The performance increases in 2.1v3 occur because I added query optimization
  22808. when translating the AppleScript query to FileMaker's (more limited) query
  22809. grammar.  Previously each sub-expression in a whose required a separate
  22810. FileMaker "find" operation.  I also fixed a number of bugs and patched a
  22811. sneaky little memory leak (28 bytes.)  I felt these fixes were valuable
  22812. enough to push for their inclusion in v3, the Server compatible version.
  22813.  
  22814. Brendan McCarthy
  22815. brendan@claris.com
  22816. =========================================================================
  22817. Date:         Tue, 30 Aug 1994 13:40:18 -0700
  22818. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22819. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22820. From:         Andrew Johnston <Andrew_Johnston@QMGATE.CORP.APPLE.COM>
  22821. Subject:      Re: Exit from a handler
  22822.  
  22823. 8/30/94                  13:30
  22824.  
  22825. Hi,
  22826.  
  22827. >I would like to test some condition and if true exit the handler:
  22828. >
  22829. [snip]
  22830.  
  22831. You could do something like this (to borrow your example):
  22832.  
  22833. on frob()
  22834.  ...
  22835.  if abort() then
  22836.   return -- alternately, return myVariableOrValue
  22837.  end if
  22838.  ...
  22839. end frob
  22840.  
  22841.  
  22842. Hopefully helpful,
  22843.   Andrew
  22844.  
  22845. ------------------
  22846. Andrew T. Johnston
  22847. Apple Canada, Inc.
  22848. atjohnst@apple.com
  22849. =========================================================================
  22850. Date:         Tue, 30 Aug 1994 11:47:24 U
  22851. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22852. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22853. From:         Robert Bogar <robert_bogar@QM.CLARIS.COM>
  22854. Subject:      Scripting MacWrite Pro?
  22855.  
  22856.         Reply to:   Scripting MacWrite Pro?
  22857. Just a general question...Who out there in scripting land is using the
  22858. AppleScript features of MacWrite Pro 1.5?  What are you doing with it?  What
  22859. type of solutions are you developing?   If you'ld like to, feel free to
  22860. e-mail me directly to avoid cloging up the mail list...
  22861. rdb@qm.claris.com
  22862.  
  22863. thanks-RDB
  22864. =========================================================================
  22865. Date:         Tue, 30 Aug 1994 12:06:16 -0800
  22866. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22867. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22868. From:         Jon Pugh <jonpugh@NETCOM.COM>
  22869. Subject:      Re: QuickTake software scriptable?
  22870.  
  22871. W. J. Proffer <proffer@SCUBED.SCUBED.COM>:
  22872. >
  22873. >Buy the PhotoFlash application ---  $200.  Or you can get the developer's kit.
  22874. >
  22875. >That's the only way you can do it -- straight from Jon Pugh.
  22876.  
  22877. I recommend waiting a few weeks.  There's an announcement coming soon.
  22878.  
  22879. Jon
  22880. =========================================================================
  22881. Date:         Tue, 30 Aug 1994 12:29:35 -0800
  22882. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22883. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22884. From:         Erik Smith <ersmith@UCSD.EDU>
  22885. Subject:      Re: Path of running script file?
  22886.  
  22887. This command executes with either a script or an application:
  22888.  
  22889. display dialog (path to current application as string)
  22890.  
  22891. The problem is that a script returns a path to the Script Editor
  22892. application as expected.  "Path to me" does not work however, unless it
  22893. needs some kind of tell statement.
  22894.  
  22895. -Erik
  22896. =========================================================================
  22897. Date:         Tue, 30 Aug 1994 14:59:07 -0500
  22898. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22899. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22900. From:         Jason Frankovitz <jfrankov@NICKEL.UCS.INDIANA.EDU>
  22901. Subject:      MACSCRPT Digest - 29 Aug 1994
  22902.  
  22903. Hello everyone!
  22904.  
  22905. If you are going to post to the group by replying to the digest,
  22906. PLEASE PLEASE edit your outgoing quotations!! You can easily double
  22907. the length of the entire digest the next day if you inadvertently
  22908. quote the whole digest from the previous day in your outgoing mail.
  22909. This is not cool. And wastes bandwidth. And our time. And destroys
  22910. ozone rainforests filled with pandas etc...
  22911.  
  22912. Anyway, please edit your mailings to the group judiciously. Thanks!
  22913.  
  22914. Jason
  22915.  
  22916. --
  22917. Are you trying to say waffles are       |      Jason Frankovitz
  22918. diuretics, or that consuming diuretics  |      Bloomington, IN
  22919. makes you waffle?                       |      jfrankov@indiana.edu
  22920. =========================================================================
  22921. Date:         Wed, 31 Aug 1994 08:57:43 +1200
  22922. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22923. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22924. From:         Chris Latta <CHRIS@TEKOTAGO.AC.NZ>
  22925. Subject:      Talking to other computers
  22926.  
  22927. Hi I'm fairly new to applescript so sorry if this is really obvious but how do I
  22928.  send commands to  other applications running over an appletalk network.  If so
  22929. can I use the PPC Browser and/or hard wire the location of the other application
  22930.  
  22931. Chris Latta
  22932. May all your bugs be handled with fly spray
  22933. =========================================================================
  22934. Date:         Tue, 30 Aug 1994 15:47:17 -0700
  22935. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22936. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22937. From:         Derrick Schneider <derrick@NETCOM.COM>
  22938. Subject:      Re: Apple Script Books
  22939. In-Reply-To:  <199408302114.OAA07370@netcom2.netcom.com>
  22940.  
  22941. On Tue, 30 Aug 1994, =?iso-8859-1?Q?Andr=E9?= Hermelink wrote:
  22942.  
  22943. > is that one the same as the first edition?
  22944.  
  22945. Nope. There are numerous improvements in the second edition. The second
  22946. edition covers AppleScript 1.1, the Scriptable Finder (though it doesn't
  22947. come with it), the Read/Write Commands, comes with lots of software
  22948. (including AS 1.1) and sample scripts.
  22949.  
  22950. I don't know about availability abroad (assonance to die for!), but I've
  22951. seen it start to show up in US bookstores already.
  22952.  
  22953. Derrick
  22954. =========================================================================
  22955. Date:         Tue, 30 Aug 1994 16:52:11 -0800
  22956. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22957. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22958. From:         Erik Smith <ersmith@UCSD.EDU>
  22959. Subject:      How to get zone?
  22960.  
  22961. Anyone know how to get the zone name of the current computer as a string?
  22962. I need an expression like "zone of current application"  (doesn't work).
  22963.  
  22964. -Erik
  22965. =========================================================================
  22966. Date:         Wed, 31 Aug 1994 12:45:14 +0100
  22967. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22968. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22969. From:         Judith Kertisz SUCHARD <suchard@CNAM.FR>
  22970. Subject:      Re: Talking to other computers
  22971.  
  22972. >Hi Chris !
  22973.  
  22974. tell application "excel" of machine "macName" of zone "truc"
  22975.    intructions as usual
  22976. end tell
  22977.  
  22978. you have to have right to connect, give your name and password (do not have
  22979. to program it)
  22980. and the appication on the other side has to be open already (also it opens
  22981. documents after)
  22982.  
  22983. Chaleureusement,
  22984.  
  22985. Judith
  22986. _________________________________________
  22987. Judith Kertisz Suchard                  suchard@cnam.cnam.fr
  22988. C.N.A.M. Labo Informatique             AppleLink: cnam
  22989. 25, rue Mont Cenis                         Tel:(1) 40 27 25 57
  22990. 75018 Paris, France                     Fax: 40 27 27 72
  22991. _________________________________________
  22992. "La simpliciti, c'est le fruit d'un long effort"
  22993. =========================================================================
  22994. Date:         Wed, 31 Aug 1994 09:53:01 -0400
  22995. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22996. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  22997. From:         Luis Muench <muench@SOLIX.FIU.EDU>
  22998. Subject:      CCL script for SLIP
  22999.  
  23000.         I am trying to get up and running with The Internet Adapter (TIA)
  23001. and have successfully configured it on my UNIX account. The problem is
  23002. with the login script for intercon's Mac SLIP. It uses ARA CCL
  23003. (Connection Control Language) and although there are rudimentary
  23004. directions for use in the docs, I have specific problems with my setup.
  23005.  
  23006.         Setup is a terminal server connection (aka "hardwire", basically
  23007. connected directly to a terminal server over a serial line) for which I
  23008. hit a return to "wake up" the terminal server, type in the name for the
  23009. service I wish to use (SOLIX, the unix box where I have my account) give
  23010. username and password, and presto. Short script, but I have no idea how
  23011. to give the command to wake up the line.
  23012.  
  23013.         Anyone have exp writing a CCL script?
  23014.  
  23015. Please email me directly with any replies.
  23016.  
  23017. Thanx a megabyte!
  23018. -Luis
  23019.  
  23020. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  23021. ::      :::     "My Karma Ran Over My Dogma"
  23022. ::  :: ::       muench@fiu.edu
  23023.  : ;:::::       Luis Muench - graphic artist
  23024.     :  :        FloridaInternationalUniversity
  23025. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  23026. =========================================================================
  23027. Date:         Wed, 31 Aug 1994 09:53:38 -0500
  23028. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23029. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23030. From:         Clinton MacDonald <clint@PHOENIX.PRINCETON.EDU>
  23031. Subject:      Script examples for BBEdit 3.0?
  23032.  
  23033. Attention: newbie alert! :-)
  23034.  
  23035.    I have just begun a project in which I will parse several 1-2 mbyte
  23036. files (output of a VAX/VMS database search) into tab-delimited text for
  23037. inclusion in a Filemaker Pro-type database. It seemed to me that
  23038. Applescript and the new scriptable BBEdit 3.0 would be the ideal way to do
  23039. this.
  23040.  
  23041.    However, BBEdit is not completely, but almost entirely unlike Scriptable
  23042. Text Editor in every way. None of the syntax I carefully gleaned from Danny
  23043. Goodman's book seems to have any effect. Can anyone offer me an example
  23044. script which could get me started? *Anything* would do, although something
  23045. with a lot of text manipulation would be ideal. Assume: Applescript 1.1 as
  23046. it comes with the Random House update to Goodman's book, and BBEdit 3.0.
  23047.  
  23048.    Thanks,
  23049.    Clint
  23050. =========================================================================
  23051. Date:         Wed, 31 Aug 1994 22:12:31 +0800
  23052. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23053. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23054. From:         Craig Richmond <craig@ECEL.UWA.EDU.AU>
  23055. Subject:      Re: Script examples for BBEdit 3.0?
  23056.  
  23057. >   I have just begun a project in which I will parse several 1-2 mbyte
  23058. >files (output of a VAX/VMS database search) into tab-delimited text for
  23059. >inclusion in a Filemaker Pro-type database. It seemed to me that
  23060. >Applescript and the new scriptable BBEdit 3.0 would be the ideal way to do
  23061. >this.
  23062.  
  23063. Seriously.  Have a look at MacPerl or the unix one if you can get hold of
  23064. it.  It really is the correct tool for the job for this sort of thing.
  23065.  
  23066. Craig
  23067.  
  23068. --
  23069. Craig Richmond, Computer Officer, ECEL Computing Services  +61 9 380 1405
  23070. The University of Western Australia      or 380 3860 Email for FAX Number
  23071. craig@ecel.uwa.edu.au Dvorak Keyboards RULE!  "Messes are only acceptable
  23072. if users make them.  Applications aren't allowed this freedom" I.M.VI 2-4
  23073. =========================================================================
  23074. Date:         Wed, 31 Aug 1994 09:53:26 -0500
  23075. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23076. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23077. From:         "Dean J. Spearman" <Dean_Spearman@MBNET.MB.CA>
  23078. Subject:      Re: FWD>>FileMaker whose cla
  23079.  
  23080. >
  23081. >From:spearman@access.mbnet.mb.ca (Dean J. Spearman)
  23082. >
  23083. >>Mail*Link(r) SMTP               RE>FWD>>FileMaker whose clause
  23084. >>"Dean J. Spearman" <Dean_Spearman@MBNET.MB.CA> writes:
  23085. >>
  23086. >>>        Anyone scripting filemaker will be interested to know that 2.1v3
  23087. >>>(updater at your favorite info-mac mirror)appears to have a vastly improved
  23088. >>>implimentation of the "whose" clause.  I assume it now uses filemakers
  23089. >>>index. At least My informal test shows that it works at least as fast as my
  23090. >>>workaround.
  23091. >>
  23092. >>You know what they say about assumptions...
  23093. >>Actually, FileMaker's index has _always_ been used when resolving "whoses."
  23094. >>Why else would an application support "whose" in addition to a simple test?
  23095. >
  23096. >Actually I didn't know that.  I was basing my assumption on prior postings to
  23097. >the macscript mailing list where others also made that assumption. (and no one
  23098. >was kind enough to clarify matters.)
  23099. >
  23100. >>
  23101. >>The performance increases in 2.1v3 occur because I added query optimization
  23102. >>when translating the AppleScript query to FileMaker's (more limited) query
  23103. >>grammar.  Previously each sub-expression in a whose required a separate
  23104. >>FileMaker "find" operation.  I also fixed a number of bugs and patched a
  23105. >>sneaky little memory leak (28 bytes.)  I felt these fixes were valuable
  23106. >>enough to push for their inclusion in v3, the Server compatible version.
  23107. >>
  23108. >>Brendan McCarthy
  23109. >>brendan@claris.com
  23110. >>
  23111. >Your actions are much appreciated. the content of the prior postings I
  23112. >referred to were primarily work arounds as the speed in previous versions made
  23113. >the "whose" clause all but unusable except in the smallest databases.  Now if
  23114. >I could just figure out how to (from applescript) open a database as a guest
  23115. >without having finder level access ....
  23116. >
  23117. >
  23118. =========================================================================
  23119. Date:         Wed, 31 Aug 1994 08:28:31 PDT
  23120. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23121. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23122. From:         Jeff Winkler <jeffwink@SDSC.EDU>
  23123. Subject:      Re: MACSCRPT Digest - 29 Aug 1994
  23124.  
  23125. >Brian Hall <mspace@NETCOM.COM> wrote:
  23126. >>
  23127. >>Given that a few people suggested writing a OSAX to handle the Eudora "on
  23128. >>notify" problem, could someone try it out and post the result? This sounds
  23129. >>like the best interim solution.
  23130. >
  23131. >Done.  I just cobbled together an aete and threw it into an osax.  It's not
  23132. >even stuffed, it's so small.  It generates the right code, but I haven't
  23133. >tried it.  I don't have a nice TCP link, only a dialup account, so it
  23134. >doesn't work well here.  Just put some code into an "on notify" handler and
  23135. >see if it works.
  23136. >
  23137. >Good luck, experimenters.  Oh, I've also included the MPW Rez code I used
  23138. >to create the aete below.
  23139. >
  23140. >Jon
  23141.  
  23142. Michael,
  23143.  
  23144. Maybe it still doesn't work?!
  23145.  
  23146. -Jeff
  23147.  
  23148. _______________________________________________________________________
  23149. Jeff Winkler
  23150. Macintosh Consultant
  23151. San Diego Supercomputer Center
  23152. (619) 534 8334
  23153. jeffwink@sdsc.edu
  23154. pager@pagenet.ucsd.edu "Subject: jeffwink"
  23155. _______________________________________________________________________
  23156. =========================================================================
  23157. Date:         Wed, 31 Aug 1994 11:50:35 EST
  23158. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23159. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23160. From:         Kim-son Tran <ktran@CC.ATINC.COM>
  23161. Subject:      FaceSpan Info and Question
  23162.  
  23163. I contacted APDA through e-mail correspondence about just getting a copy of the
  23164. FaceSpan software and whether it would be included with System 7.5 (CD version).
  23165. This is the reply from Ken:
  23166.  
  23167. >>To only order FaceSpan, please call Software Designs Unlimited.  (I'm sorry I
  23168. >>don't have their number).  FaceSpan doesn't come with 7.5.
  23169.  
  23170. So, does anyone out there have the number of Software Designs Unlimited or any
  23171. further info on getting just a copy of the FaceSpan software?
  23172.  
  23173. Thanks....
  23174.  
  23175. Internet:   ktran@cc.atinc.com or tk@cc.atinc.com
  23176. AOL:        kimsont@aol.com
  23177. eWorld:     kimsontran@eworld.com
  23178. =========================================================================
  23179. Date:         Wed, 31 Aug 1994 11:50:31 EST
  23180. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23181. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23182. From:         Kim-son Tran <ktran@CC.ATINC.COM>
  23183. Subject:      Scripting Anarchie
  23184.  
  23185. I'm exploring the potential of AppleScripting with Anarchie but I can't seem to
  23186. figure out how to determine if an item returned from a listing is a file or a
  23187. folder. Below is what I have so far. I am able to selected any paragraph
  23188. returned since it is actually a URL to that item but how do I determine what the
  23189. item is:
  23190.  
  23191. tell application "Anarchie"
  23192.     activate
  23193.     with timeout of (5 * minutes) seconds
  23194.         list file "Macintosh HD:Desktop Folder:Listing" host "ftp.sunet.se" path
  23195.             "/pub/pictures" with window --get the directory of pictures.
  23196.     end timeout
  23197.  
  23198.     selectall --select all the contents of the window.
  23199.     set theList to contents of selection --store the URL path in paragraph form
  23200.                                             for selection.
  23201.     --pick random path specifying an item (could have used index of paragraph).
  23202.     set thePick to (random number from 1 to (count of paragraphs of theList))
  23203.     set theChosenItem to paragraph thePick of theList
  23204.  
  23205.     --statements to determine if the item is a folder or a file.
  23206.  
  23207. end tell
  23208.  
  23209.  
  23210. Any help would be greatly appreciated...
  23211.  
  23212. Internet:   ktran@cc.atinc.com or tk@cc.atinc.com
  23213. AOL:        kimsont@aol.com eWorld:     kimsontran@eworld.com
  23214. =========================================================================
  23215. Date:         Wed, 31 Aug 1994 09:36:00 -0400
  23216. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23217. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23218. From:         "ross (w.r.) brown" <ross@BNR.CA>
  23219. Subject:      Re: How to get zone?
  23220.  
  23221. >Anyone know how to get the zone name of the current computer as a string?
  23222. >I need an expression like "zone of current application"  (doesn't work).
  23223.  
  23224. Install the Sharing Information osax from GTQ Scripting Library, then try
  23225.    zone of (sharing information)
  23226. =========================================================================
  23227. Date:         Wed, 31 Aug 1994 12:21:57 EDT
  23228. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23229. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23230. From:         Jeff Smeenge <Smeenge@AOL.COM>
  23231. Subject:      Re: MACSCRPT Digest - 29 Aug 1994 to 30 Aug 1994
  23232.  
  23233. CANCEL SUBSCRIPTION
  23234. REMOVE NAME
  23235. CANCEL LISTSERV
  23236. DELETE MEMBERSHIP
  23237. =========================================================================
  23238. Date:         Wed, 31 Aug 1994 09:17:46 -0700
  23239. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23240. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23241. From:         Kevin Purcell <kevinpu@ATM.COM>
  23242. Subject:      Re: Script examples for BBEdit 3.0?
  23243.  
  23244. >   I have just begun a project in which I will parse several 1-2 mbyte
  23245. >files (output of a VAX/VMS database search) into tab-delimited text for
  23246. >inclusion in a Filemaker Pro-type database. It seemed to me that
  23247. >Applescript and the new scriptable BBEdit 3.0 would be the ideal way to do
  23248. >this.
  23249.  
  23250. Perhaps using awk or perl might be more appropriate. The latter is on gaea.
  23251. The former is availible. Both are better than AppleScript + app for
  23252. manipulating large text files (IMO).
  23253.  
  23254. Kevin Purcell, N7WIM / G8UDP      kevinpu@eve.atm.com      206/649-6489
  23255. Attachmate Corp                   xenolith@halcyon.com
  23256. =========================================================================
  23257. Date:         Wed, 31 Aug 1994 09:28:46 -0700
  23258. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23259. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23260. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  23261. Subject:      Re: FaceSpan Info and Question
  23262.  
  23263. >I contacted APDA through e-mail correspondence about just getting a copy of the
  23264. >FaceSpan software and whether it would be included with System 7.5 (CD
  23265. >version).
  23266. >This is the reply from Ken:
  23267. >
  23268. >>>To only order FaceSpan, please call Software Designs Unlimited.  (I'm sorry I
  23269. >>>don't have their number).  FaceSpan doesn't come with 7.5.
  23270. >
  23271. >So, does anyone out there have the number of Software Designs Unlimited or any
  23272. >further info on getting just a copy of the FaceSpan software?
  23273.  
  23274. Per the About box (copied by hand...grrr!):
  23275.  
  23276. Software Designs Unlimited
  23277. 1829 E Franklin St
  23278. Chapel Hill, NC 27514
  23279.  
  23280. (919) 968-4567
  23281.  
  23282. --
  23283. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  23284. When was the last time you checked out the ceiling tiles in a building you
  23285. were in?
  23286. =========================================================================
  23287. Date:         Wed, 31 Aug 1994 17:33:52 GMT
  23288. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23289. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23290. From:         Paul G Smith <paul@CTALK.EXNET.COM>
  23291. Organization: commstalk, & Full Moon Software Inc
  23292. Subject:      Re: FaceSpan Info and Question
  23293.  
  23294. In Regards to your letter <199408311610.AA00159@exnet.com>:
  23295. >
  23296. > I contacted APDA through e-mail correspondence about just getting a copy of
  23297.  the
  23298. > FaceSpan software and whether it would be included with System 7.5 (CD
  23299.  version).
  23300. > This is the reply from Ken:
  23301. >
  23302. > >>To only order FaceSpan, please call Software Designs Unlimited.  (I'm sorry
  23303.  I
  23304. > >>don't have their number).  FaceSpan doesn't come with 7.5.
  23305. >
  23306. > So, does anyone out there have the number of Software Designs Unlimited or any
  23307. > further info on getting just a copy of the FaceSpan software?
  23308. >
  23309.  
  23310. Facespan isn't available on its own. You want the AppleScript
  23311. Scripters' Kit, or alternatively the AppleScript 1.1 SDK. Both include
  23312. Facespan, plus a lot more; think of the cost of the kit as being for
  23313. Facespan, and that AS 1.1 is thrown in for free, the price really
  23314. isn't too high. You can get the first from Apple mail order channels,
  23315. and the second is an APDA product, code number R0175Z/C (page 11 of the
  23316. current catalog). The first is cheaper if you go to a discount mail
  23317. order supplier; the APDA SDK is a bit steep at $199.
  23318.  
  23319. SDU can be contacted at SDU@applelink.apple.com, by the way. Address
  23320. your message to Chris Ogden at SDU.
  23321.  
  23322.  
  23323. best regards, Paul
  23324.  
  23325. +------------------------------------------------------------------+
  23326. | Paul G Smith, Full Moon Software        ||  UK ph: +44 727 844232
  23327. | PO Box 116, ST ALBANS, Herts AL1 2RL UK ||    fax: +44 727 856139
  23328. | & Full Moon Software, Inc               ||  US ph: 408 253 7199
  23329. | P O Box 700237, SAN JOSE, CA 95170 USA  ||    fax: 408 252 2378
  23330. =========================================================================
  23331. Date:         Wed, 31 Aug 1994 09:43:09 -0800
  23332. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23333. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23334. From:         Gabriel Lawrence <gabe@UCSD.EDU>
  23335. Subject:      Dialog Box with non Clear text.
  23336.  
  23337. I am writing an applescript to start up an application that needs an
  23338. appleshare volume mounted. I wanted to be able to ask the user for their
  23339. user name and their password, but I want that password to show up not in
  23340. clear text. anyone know of any osaxen that do this? I have looked at the
  23341. password osaxen but it encrypts the password...
  23342.  
  23343. thanx
  23344.  
  23345. -Gabe
  23346.  
  23347. -----------------------------------------------------------------------
  23348.                   Scripps Institution of Oceanography
  23349.                             UC San Diego
  23350.                   Wrk: 619.534.2040 Hme: 619.455.6506
  23351.                      http://sio.ucsd.edu/~gabe/
  23352. =========================================================================
  23353. Date:         Wed, 31 Aug 1994 14:05:32 -0800
  23354. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23355. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23356. From:         Jon Pugh <jonpugh@NETCOM.COM>
  23357. Subject:      Re: ScriptServer
  23358.  
  23359. Robert Holton <rholton@CSD.ABDN.AC.UK> wrote:
  23360. >
  23361. >I'm looking at ScriptServer to see if I can hack up a mode in Alpha for
  23362. >AppleScrpt, but I've fallen at the first hurdle! I can't even write an
  23363. >AppleScript program to compile or decompile a script. Any hints/example
  23364. >code would be gratefully received; if and when I get an Alpha AppleScript
  23365. >mode up and running I'll make it readily available (unless you know of
  23366. >anyone else who has done this...) (hell, if it works I'll even pay my
  23367. >shareware feel for ScriptServer :-).
  23368.  
  23369. Start saving your quid, bits, pounds or whatever.  :)
  23370.  
  23371. Here's a sample script which will compile a text file with ScriptServer:
  23372.  
  23373. tell application "ScriptServer"
  23374.   set f to choose file "Pick a file to compile" of type "TEXT"
  23375.   set fName to f as string
  23376.   set sName to fName & ".as"
  23377.   with timeout of 3600 seconds -- 1 hour, plenty of time to find & launch apps
  23378.     compile f to sName
  23379.   end timeout
  23380. end tell
  23381.  
  23382. You'll need to spruce it up.  It should be straightforward to write a
  23383. #include script like we did in MPW.
  23384.  
  23385. Right now you need to communicate with ScriptServer via files.  I'll be
  23386. adding support for sending the text on the compile event, as well as for
  23387. creating a script object which can be specified once and then referenced.
  23388. Some of this is in the aete, which has some mild lies.  They will be
  23389. truthful later.  ;)
  23390.  
  23391. Jon
  23392. =========================================================================
  23393. Date:         Wed, 31 Aug 1994 17:31:32 -0500
  23394. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23395. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23396. From:         David Myers <myers@ACEC.COM>
  23397. Subject:      Is Fetch scriptable?
  23398.  
  23399. Is Fetch scriptable at all?  At work there is an old machine that
  23400. doesn't understand some of the FTP commands Anarchie sends to it.
  23401. As a result, it denies Anarchie access.  Fetch, however, has no
  23402. problem getting access.
  23403.  
  23404. Also, does Anarchie allow you to get a directory listing under
  23405. script control, without forcing you to dump the directory list
  23406. to a file?  I'd like to send Anarchie an appleEvent that causes
  23407. it to present to me the directory listing, so that I can manually
  23408. double-click on the files I want.
  23409.  
  23410. Thanks.
  23411.  
  23412. -David
  23413.  
  23414. ____________________________________________________
  23415.  
  23416. David C. Myers
  23417. myers@acec.com
  23418. =========================================================================
  23419. Date:         Thu, 1 Sep 1994 09:32:00 +1200
  23420. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23421. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23422. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  23423.               NZ" <LDO@WAIKATO.AC.NZ>
  23424. Subject:      Re: Scripting Anarchie
  23425.  
  23426. Kim-son Tran <ktran@CC.ATINC.COM> writes:
  23427.  
  23428. >I'm exploring the potential of AppleScripting with Anarchie but I can't seem to
  23429. >figure out how to determine if an item returned from a listing is a file or a
  23430. >folder.
  23431.  
  23432. Hint: how do you think Anarchie knows? All it's getting back from the FTP
  23433. server is a text listing. Folders are the ones with the slashes on the ends
  23434. of their names.
  23435.  
  23436. >tell application "Anarchie"
  23437. >    activate
  23438. >    with timeout of (5 * minutes) seconds
  23439. >        list file "Macintosh HD:Desktop Folder:Listing" host "ftp.sunet.se" pat
  23440. h
  23441. >            "/pub/pictures" with window --get the directory of pictures.
  23442. >    end timeout
  23443. >
  23444. >    selectall --select all the contents of the window.
  23445. >    set theList to contents of selection --store the URL path in paragraph form
  23446. >                                            for selection.
  23447.  
  23448. >    --pick random path specifying an item (could have used index of paragraph).
  23449. >    set thePick to (random number from 1 to (count of paragraphs of theList))
  23450. >    set theChosenItem to paragraph thePick of theList
  23451.  
  23452. These two lines can be replaced with one:
  23453.  
  23454.         set theChosenItem to some paragraph of theList
  23455.  
  23456. >    --statements to determine if the item is a folder or a file.
  23457.  
  23458. How about:
  23459.  
  23460.         if last character of theChosenItem = "/" then
  23461.         -- it's a folder
  23462.         else
  23463.         -- it's a file
  23464.         end if
  23465.  
  23466. >end tell
  23467.  
  23468. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  23469. Info & Tech Services Division              fax: +64-7-838-4066
  23470. University of Waikato            electric mail: ldo@waikato.ac.nz
  23471. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  23472. =========================================================================
  23473. Date:         Wed, 31 Aug 1994 17:59:17 -0500
  23474. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23475. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23476. From:         David Myers <myers@ACEC.COM>
  23477. Subject:      Is Fetch scriptable (additional comments)
  23478.  
  23479. With regard to my second question, about Anarchie's ability to get
  23480. a directory listing without saving it to a file, let me add that
  23481. I'm using Frontier, which doesn't appear to allow the
  23482. "with window" parameter that AppleScript uses.  Why is that?
  23483.  
  23484. Thanks.
  23485.  
  23486. -David.
  23487.  
  23488. ____________________________________________________
  23489.  
  23490. David C. Myers
  23491. myers@acec.com
  23492. =========================================================================
  23493. Date:         Wed, 31 Aug 1994 14:14:27 -1000
  23494. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23495. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23496. From:         Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
  23497. Subject:      AppleScript control statements
  23498.  
  23499. Maybe someone out there can help me out with this question:
  23500.  
  23501. Does AppleScript have a command that is the equivalent of the "continue"
  23502. statement in C?  It seems like a major thing to leave out.
  23503.  
  23504. repeat with i from 1 to 10
  23505.   blah blah blah
  23506.   if false then
  23507.     skip to the top of the loop   --This is what I want to do!
  23508.   blah blah blah blah
  23509. end repeat
  23510.  
  23511.  
  23512. Do I have to do it recurvesively?
  23513.  
  23514. Thanks in advance,
  23515. peter
  23516. =========================================================================
  23517. Date:         Wed, 31 Aug 1994 17:35:02 -0800
  23518. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23519. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23520. From:         Erik Smith <ersmith@UCSD.EDU>
  23521. Subject:      Re: AppleScript control statements
  23522.  
  23523. >Does AppleScript have a command that is the equivalent of the "continue"
  23524. >statement in C?  It seems like a major thing to leave out.
  23525. >
  23526. >repeat with i from 1 to 10
  23527. >  blah blah blah
  23528. >  if false then
  23529. >    skip to the top of the loop   --This is what I want to do!
  23530. >  blah blah blah blah
  23531. >end repeat
  23532.  
  23533. Isn't this the same as:
  23534.  
  23535. repeat with i from 1 to 10
  23536.   blah blah blah
  23537.   if not false then
  23538.     blah blah blah blah
  23539. end repeat
  23540. =========================================================================
  23541. Date:         Wed, 31 Aug 1994 17:44:45 -0700
  23542. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23543. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23544. From:         Eric Gorr <ericg@CS.UOREGON.EDU>
  23545. Subject:      Re: AppleScript control statements
  23546. In-Reply-To:  <9409010038.AA06094@skinner.cs.uoregon.edu>
  23547.  
  23548. On Wed, 31 Aug 1994, Erik Smith wrote:
  23549.  
  23550. > >Does AppleScript have a command that is the equivalent of the "continue"
  23551. > >statement in C?  It seems like a major thing to leave out.
  23552. > >
  23553. > >repeat with i from 1 to 10
  23554. > >  blah blah blah
  23555. > >  if false then
  23556. > >    skip to the top of the loop   --This is what I want to do!
  23557. > >  blah blah blah blah
  23558. > >end repeat
  23559.  
  23560.  
  23561. what about doing:
  23562.  
  23563.  
  23564. repeat with i from 1 to 10
  23565.  blah blah blah
  23566.  if true then
  23567.     blah blah blah blah
  23568. end repeat
  23569.  
  23570. ===Eric Gorr================ericg@cs.uoregon.edu===========aka MystryMan===
  23571. _____
  23572. |\ /| * Invincibility is in oneself, vulnerability is in the opponent
  23573. | O | * Therefore the considerations of the intelligent always include both
  23574. |/_\|   benefit and harm (Sun Tzu)
  23575.  
  23576. #include <standard.disclamer>
  23577. =====Insults, like violence, are the last resort of the incompetent...=====
  23578. =========================================================================
  23579. Date:         Wed, 31 Aug 1994 21:00:06 -0500
  23580. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23581. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23582. From:         "a.h.s. boy" <spud@ACCESS.DIGEX.NET>
  23583. Subject:      Launching Eudora
  23584.  
  23585. Hi folks...I just figgered out how to get on this list, as I got tired off
  23586. slogging through those HUGE digests... so excuse me if this has been
  23587. covered.
  23588.  
  23589. I use Eudora constantly to download mail while I'm gone, via the Comm.
  23590. Toolbox. When I get home, however, I like to log on to my PPP account, and
  23591. open the "standard" set of PPP apps. I'm writing a simple script to
  23592. automate these things, but I've run into a problem with Eudora -- since the
  23593. settings are configured for the CTB, when Eudora is launched (there's no
  23594. problem if it was already open), it tries to connect via the CTB before I
  23595. have a chance to change the settings to MacTCP, generating an error, and
  23596. bogging everything down.
  23597.  
  23598. Now, Eudora will avoid trying to connect on launch in two situations: 1) if
  23599. the "Check every __ minutes" box is set to 0, which I can't do until I
  23600. launch Eudora (too late), and wouldn't want to anyway, and 2) if you hold
  23601. down the Shift key while launching the application (better).
  23602.  
  23603. So my question is this: how do I script it such that it thinks it's holding
  23604. down the Shift key when launching Eudora? I haven't found any OSAX that
  23605. seem to allow you to "press [modifier] key" for no apparent reason (though
  23606. Autotype OSAX has this for text).
  23607.  
  23608. Help? Is there another way around this?
  23609.  
  23610. TIA,
  23611. spud.
  23612.  
  23613.  
  23614. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  23615. a.h.s. boy --------------------- manifesto overlord, dada typographics
  23616. -------------------------------- spud on MediaMOO, Lambda MOO, PMC-MOO
  23617. spud@access.digex.net ---------- WWW page:  http://www.digex.net/~spud
  23618. =========================================================================
  23619. Date:         Thu, 1 Sep 1994 13:49:00 +1200
  23620. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23621. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23622. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  23623.               NZ" <LDO@WAIKATO.AC.NZ>
  23624. Subject:      Re: AppleScript control statements
  23625.  
  23626. Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU> writes:
  23627.  
  23628. >Does AppleScript have a command that is the equivalent of the "continue"
  23629. >statement in C?  It seems like a major thing to leave out.
  23630.  
  23631. This may not be the answer you wanted to hear, but have you considered
  23632. looking at the problem closely, to see _why_ you need such a construct?
  23633. I ask because I write tens of thousands of lines of code in another language
  23634. (Modula-2) that also lacks gotos and a "continue" statement, and I can write
  23635. clean, uncontorted code without feeling the need for either.
  23636.  
  23637. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  23638. Info & Tech Services Division              fax: +64-7-838-4066
  23639. University of Waikato            electric mail: ldo@waikato.ac.nz
  23640. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  23641. =========================================================================
  23642. Date:         Wed, 31 Aug 1994 19:04:04 -0800
  23643. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23644. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23645. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  23646. Subject:      Re: Is Fetch scriptable (additional comments)
  23647.  
  23648. >With regard to my second question, about Anarchie's ability to get
  23649. >a directory listing without saving it to a file, let me add that
  23650. >I'm using Frontier, which doesn't appear to allow the
  23651. >"with window" parameter that AppleScript uses.  Why is that?
  23652. >
  23653.         Because that feature was added since I wrote the original verb
  23654. table for Anarchie. You could use the Commercial Developer suite to create
  23655. your own table if you wish...
  23656.  
  23657.  
  23658. Leonard
  23659.  
  23660. -----------------------------------------------------------------------------
  23661. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  23662. Director of Advanced Technology         AppleLink:      MACgician
  23663. Aladdin Systems, Inc.                   GEnie:          MACgician
  23664. =========================================================================
  23665. Date:         Wed, 31 Aug 1994 21:51:17 -0400
  23666. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23667. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23668. From:         Mike Alexander <mike.alexander@AOCE.ITD.UMICH.EDU>
  23669. Subject:      Re: Is Fetch scriptable (additional comments)
  23670.  
  23671. The Frontier glue table for AnArchie is missing a bunch of stuff.  If you use
  23672. the Commercial Developer suite in Frontier 3.0.3 to generate a new one from
  23673. the aete resource, it will be more complete and will include the window
  23674. parameter to the list command (among other things).  Unfortunately, four
  23675. verbs generate scripts that won't compile without a bit of hand editing.
  23676. List, fetch, nlist, and store all have generated commands that are too long
  23677. and get split at a bad spot.  They are easy to fix.  The table is also
  23678. missing a "get" verb since AnArchie doesn't claim to support the core suite,
  23679. but adding one is easy (copy one from another table and change the id).
  23680. Given this, the example you gave before works in Frontier (just add
  23681. "window:true" to the "get" call).
  23682.  
  23683. Something I didn't figure out is how to get AnArchie to return a
  23684. fileDescriptor object.  It claims to support such a thing, and it has an
  23685. "isDirectory" property which I think is what you're looking for, but I can't
  23686. seem to convince it to return such an object specifier.
  23687.  
  23688.    Mike Alexander
  23689.    University of Michigan
  23690.  
  23691.  ------ From: Macintosh Scripting Systems, Wed, Aug 31, 1994 ------
  23692.  
  23693. With regard to my second question, about Anarchie's ability to get
  23694. a directory listing without saving it to a file, let me add that
  23695. I'm using Frontier, which doesn't appear to allow the
  23696. "with window" parameter that AppleScript uses.  Why is that?
  23697. =========================================================================
  23698. Date:         Wed, 31 Aug 1994 22:57:58 -0400
  23699. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23700. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23701. From:         Paul Gerardi <gerardi@RIDGEFIELD.SDR.SLB.COM>
  23702. Subject:      Re: Launching Eudora
  23703.  
  23704. ...
  23705. >I use Eudora constantly to download mail while I'm gone, via the Comm.
  23706. >Toolbox. When I get home, however, I like to log on to my PPP account, and
  23707. >open the "standard" set of PPP apps. I'm writing a simple script to
  23708. >automate these things, but I've run into a problem with Eudora -- since the
  23709. >settings are configured for the CTB, when Eudora is launched (there's no
  23710. >problem if it was already open), it tries to connect via the CTB before I
  23711. >have a chance to change the settings to MacTCP, generating an error, and
  23712. >bogging everything down.
  23713. >
  23714. >Now, Eudora will avoid trying to connect on launch in two situations: 1) if
  23715. >the "Check every __ minutes" box is set to 0, which I can't do until I
  23716. >launch Eudora (too late), and wouldn't want to anyway, and 2) if you hold
  23717. >down the Shift key while launching the application (better).
  23718. >
  23719. ...
  23720. >
  23721. >Help? Is there another way around this?
  23722. >
  23723. >TIA,
  23724. >spud.
  23725. >
  23726. >
  23727. >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  23728. >a.h.s. boy --------------------- manifesto overlord, dada typographics
  23729. >-------------------------------- spud on MediaMOO, Lambda MOO, PMC-MOO
  23730. >spud@access.digex.net ---------- WWW page:  http://www.digex.net/~spud
  23731.  ==============================================================================
  23732.  
  23733. What about having 2 "Eudora Settings" Files in the same place, configured
  23734. the same, except that one is set to use CTB and one TCP/IP.
  23735.  
  23736. Depending which of them you double click on, determines how Eudora accesses
  23737. the net for reading mail.
  23738.  
  23739. If you're doing things from a script, this makes things easy. Just name
  23740. them something like "Eudora Settings TCP" and "Eudora Settings CTB".  The
  23741. script
  23742. can copy one of them to "Eudora Settings", then launch Eudora. Maybe not
  23743. completely elegant, but it works great for me :-)
  23744.  
  23745. -Paul
  23746.  
  23747.  
  23748. =======================================================================
  23749.   Paul Gerardi                             Schlumberger-Doll Research
  23750.   Computing Services                       Old Quarry Road
  23751.   Macintosh, Workstations, Networks        Ridgefield, CT  06877
  23752.   e-mail: gerardi@ridgefield.sdr.slb.com   Phone: (203)431-5471
  23753.   AppleLink: GERARDI.SDR                   Fax:   (203)438-3819
  23754. =======================================================================
  23755. =========================================================================
  23756. Date:         Wed, 31 Aug 1994 22:59:54 -0600
  23757. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23758. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  23759. From:         Tom Donovan <donovan@COVIS.NWU.EDU>
  23760. Subject:      Re: Launching Eudora
  23761.  
  23762. >Hi folks...I just figgered out how to get on this list, as I got tired off
  23763. >slogging through those HUGE digests... so excuse me if this has been
  23764. >covered.
  23765. >
  23766. >I use Eudora constantly to download mail while I'm gone, via the Comm.
  23767. >Toolbox. When I get home, however, I like to log on to my PPP account, and
  23768. >open the "standard" set of PPP apps. I'm writing a simple script to
  23769. >automate these things, but I've run into a problem with Eudora -- since the
  23770. >settings are configured for the CTB, when Eudora is launched (there's no
  23771. >problem if it was already open), it tries to connect via the CTB before I
  23772. >have a chance to change the settings to MacTCP, generating an error, and
  23773. >bogging everything down.
  23774. >
  23775. >Now, Eudora will avoid trying to connect on launch in two situations: 1) if
  23776. >the "Check every __ minutes" box is set to 0, which I can't do until I
  23777. >launch Eudora (too late), and wouldn't want to anyway, and 2) if you hold
  23778. >down the Shift key while launching the application (better).
  23779. >
  23780. >So my question is this: how do I script it such that it thinks it's holding
  23781. >down the Shift key when launching Eudora? I haven't found any OSAX that
  23782. >seem to allow you to "press [modifier] key" for no apparent reason (though
  23783. >Autotype OSAX has this for text).
  23784. >
  23785. >Help? Is there another way around this?
  23786. >
  23787.  
  23788. You can launch Eudora from 2 different settings files--one set for CTB and
  23789. the other for MacTCP.  As long as both are in the same folder as all of
  23790. your mailboxes, everything else will be the same.  I do this all the time
  23791. to collect mail from several accounts.
  23792.  
  23793. Hope this helps.
  23794.  
  23795. --Tom
  23796.